Suppose I am using this code to read a text file :
Suppose the text file contains some text like :
A
B
C
D
with the last line not being terminated with a carriage return or line feed character.
What progress reads is
A
B
C
C
So the last line is not read correctly.
Is Progress aware of this issue ? I think this issue already exists for a long time.
Do you know of a workaround for this issue ?
Code:
DEFINE VARIABLE inputLine AS CHARACTER NO-UNDO.
DEFINE STREAM sin.
input stream sin from T:/demo.txt.
repeat:
import stream sin unformatted inputLine.
...
end.
input stream sin close.
Suppose the text file contains some text like :
A
B
C
D
with the last line not being terminated with a carriage return or line feed character.
What progress reads is
A
B
C
C
So the last line is not read correctly.
Is Progress aware of this issue ? I think this issue already exists for a long time.
Do you know of a workaround for this issue ?