I'm using Javascript (specifically in TestComplete) to read a file. On one computer, this works exactly as I expect it to and each line is printed individually. On a different computer using the exact same XML file, this is all read as one line. It prints with line breaks, just the entire file in one single print. The line breaks are CR+LF.
var settingsPath = Project.Path + "Supporting Files\\Settings.xml"
var settingsFile = aqFile.OpenTextFile(settingsPath, aqFile.faRead, aqFile.ctUTF8)
// Read the settings file.
while (!settingsFile.IsEndOfFile()) {
var line = settingsFile.ReadLine()
Log.Message(line)
}
Why would it read the file differently between different computers, and how can I fix this?