Vaalen
Member
Hi,
I feel like a complete idiot. After many, many years of programming in Progress it still amazes me...
I am having a very simple program:
Program testje.p looks like this
File t.t looks like this (HEX):
Program testje.p then reads 0A, after that 31, after that 0A 0C and after that 0A 0C.
So what I see is carriage-return/linefeed twice.
This gives some trouble in processing file t.t.
Can anyone explain why 0A 0C is put twice to output instead of once followed by 0A?
OpenEdge 10.2A on Unix.
I feel like a complete idiot. After many, many years of programming in Progress it still amazes me...
I am having a very simple program:
Code:
define stream sa.
output stream sa to t.t paged.
display stream sa "1".
page stream sa.
put stream sa unformatted skip(1).
output stream sa close.
run testje.p.
Program testje.p looks like this
Code:
def var cregel as char no-undo.
input from t.t.
repeat:
import unformatted cregel.
display cregel length(cregel).
end.
input close.
File t.t looks like this (HEX):
Code:
0A 31 0A 0C 0A 0C
Program testje.p then reads 0A, after that 31, after that 0A 0C and after that 0A 0C.
So what I see is carriage-return/linefeed twice.
This gives some trouble in processing file t.t.
Can anyone explain why 0A 0C is put twice to output instead of once followed by 0A?
OpenEdge 10.2A on Unix.