Is this how openFileBOM/1 should behave?
Code: Select all
Output using openFileBOM(FN):
zero
one
two
three
Output using openFile8(FN):
zero
one
two
three
Code: Select all
test() :-
FN = @"SimpeTestFile.txt",
In1 = inputStream_file::openFileBom(FN),
stdio::write("\n\nOutput using openFileBOM(FN):"),
In1:repeatToEndOfStream(),
stdio::write("\n", In1:readLine()),
In1:endOfStream(),
In1:close(),
In2 = inputStream_file::openFile8(FN),
stdio::write("\n\nOutput using openFile8(FN):"),
In2:repeatToEndOfStream(),
stdio::write("\n", In2:readLine()),
In2:endOfStream(),
!,
In2:close().
test().