Hi I am new in progress also and I am have some problems trying to figure it out how to read a file with progress . What am trying to do is read the whole line of the file and put it into a temp table but the last line it is not read it because it does not have the new line (enter/skip) , so what I want to do is add that new line (enter or skip ) to that last line. Any Idea? Any help would be really appreciated. this is how it looks the code.
Define Temp-table LockBoxFile No-undo
Field Company as character format "x(50)":u label "Part"
Field LockboxNum as Character .
INPUT FROM Value(file).
REPEAT:
CREATE LockBoxFile.
Import UNFORMATTED LockboxNum .
END.
INPUT CLOSE.
For each LockboxFile:
If LockboxNum = "" Then
delete LockboxFile.
End.
define var i as integer.
output to "x:\test.txt".
For each LockboxFile:
message LockboxFile.LockboxNum .
i = i + 1.
End.
output close.
display i.
Define Temp-table LockBoxFile No-undo
Field Company as character format "x(50)":u label "Part"
Field LockboxNum as Character .
INPUT FROM Value(file).
REPEAT:
CREATE LockBoxFile.
Import UNFORMATTED LockboxNum .
END.
INPUT CLOSE.
For each LockboxFile:
If LockboxNum = "" Then
delete LockboxFile.
End.
define var i as integer.
output to "x:\test.txt".
For each LockboxFile:
message LockboxFile.LockboxNum .
i = i + 1.
End.
output close.
display i.