Suppose you have a simple text file (read.txt) with this contents:
A
B
C
Important is that the last line is not terminated with a CR or LF character.
Then you read this text file with a simple program:
DEFINE VARIABLE filename AS CHARACTER NO-UNDO.
DEFINE VARIABLE filetext AS CHARACTER NO-UNDO.
define stream sin.
filename = "read.txt".
input stream sin from value(filename).
repeat:
import stream sin filetext.
MESSAGE "input=" filetext
VIEW-AS ALERT-BOX INFO BUTTONS OK.
end.
input stream sin close.
Output of this demo is:
input= A
input= B
input= B
Which is obviously incorrect.
I tested this on OE11.1 and it is still not solved.
(I suppose i will need to increase awareness of this issue with Progress support. )
A
B
C
Important is that the last line is not terminated with a CR or LF character.
Then you read this text file with a simple program:
DEFINE VARIABLE filename AS CHARACTER NO-UNDO.
DEFINE VARIABLE filetext AS CHARACTER NO-UNDO.
define stream sin.
filename = "read.txt".
input stream sin from value(filename).
repeat:
import stream sin filetext.
MESSAGE "input=" filetext
VIEW-AS ALERT-BOX INFO BUTTONS OK.
end.
input stream sin close.
Output of this demo is:
input= A
input= B
input= B
Which is obviously incorrect.
I tested this on OE11.1 and it is still not solved.
(I suppose i will need to increase awareness of this issue with Progress support. )