External File truncating first three characters on each read
Posted: Mon Aug 08, 2011 2:29 pm
I'm attempting to read an external file. Each time I read the first three characters are ignored.
My statements looks like:
24000 dim gnl_block$*512
21400 open #1: 'name=C:\Users\John\Desktop\TimeSheet.csv,RecL=100,Shr',external,input
24800 read #1: gnl_block$
changing the RECL seems to have no effect. I've tried this in 4.03 and 4.3, they both have the same issue. I'm not sure what I'm doing wrong.
Oh and reading it as a display file is not an option because I need to read the LFs and/or CRLFs that are at the end of each line.
Any suggestions?
-John Bowman
My statements looks like:
24000 dim gnl_block$*512
21400 open #1: 'name=C:\Users\John\Desktop\TimeSheet.csv,RecL=100,Shr',external,input
24800 read #1: gnl_block$
changing the RECL seems to have no effect. I've tried this in 4.03 and 4.3, they both have the same issue. I'm not sure what I'm doing wrong.
Oh and reading it as a display file is not an option because I need to read the LFs and/or CRLFs that are at the end of each line.
Any suggestions?
-John Bowman