loadStrings not working on some files
in
Programming Questions
•
2 years ago
I have written a program to parse test data from an HTML file generated by a test rig. I use the line:-
lines = loadStrings(folderPath+"/"+files[F]);
To get the lines of the file in and then:-
while (lines[i].indexOf(matches[j]) == -1){i++;}
to search the file for a string I have in matches[j]
This works fine. However then the test rig software was changed and this does not work any more. There is only one line returned for the first statement and it doesn't correspond to anything in the file.
The HTML files are too long to post.
The two sorts of files look the same and a hex dump has not reviled any significant change I can spot.
Do you know what could stop loadStrings from working?
lines = loadStrings(folderPath+"/"+files[F]);
To get the lines of the file in and then:-
while (lines[i].indexOf(matches[j]) == -1){i++;}
to search the file for a string I have in matches[j]
This works fine. However then the test rig software was changed and this does not work any more. There is only one line returned for the first statement and it doesn't correspond to anything in the file.
The HTML files are too long to post.
The two sorts of files look the same and a hex dump has not reviled any significant change I can spot.
Do you know what could stop loadStrings from working?
1