I have opened an input file starting with the valid command line
My program got the garbage line as the first line before the above command line.{Test with five places}
which could not be interpreted.
The
Code: Select all
Line=InputStream:readLine()
which was not present in my data file.
The simplified code of parsing my input file is below.
Code: Select all
predicates
handleEof:() determ.
readInputFile:() determ.
clauses
% Read input file.
readInputFile() :-
std::repeat(),
EndofStream=parseLines(),
EndofStream=true,
!,
handleEof().
% Snip
clauses
% Parse input lines.
% Snip
parseLines()=Eof :-
Line=InputStream:readLine(),
parseLines()=true.
comes from and why I do not see it it an editor before the
first line.{Test with five places}
The strange phenomenon appears only during reading one file. The parsing of my other input files gets the same first line as I saved them.