I am bringing in multiple records from a Text box.
These records are just long strings of spaces and numbers and Letters.
So I dim my object that I put them in as string since I have both numbers and spaces.
Now my problem is for example the length of the record is in the first 4 characters like 0087 would mean that a record's length is 87 characters long.
Well in the text file it is 87 characters long but the problem is that the last 20 are spaces.
When I read in my record is doesn't bring in the spaces so I only get a Len of 67 and that throws up an error in my program.
Is there a different way or an optional value to use in the Input# statement that will make sure it goes to the end of the record?
I do not know for sure if I am going to have a crlf at the end of the record.
I just know that the file is written with the write statement and in the text file they are on seperate lines.
Hope I gave enough information TheKing
![[pc3] [pc3] [pc3]](/data/assets/smilies/pc3.gif)
These records are just long strings of spaces and numbers and Letters.
So I dim my object that I put them in as string since I have both numbers and spaces.
Now my problem is for example the length of the record is in the first 4 characters like 0087 would mean that a record's length is 87 characters long.
Well in the text file it is 87 characters long but the problem is that the last 20 are spaces.
When I read in my record is doesn't bring in the spaces so I only get a Len of 67 and that throws up an error in my program.
Is there a different way or an optional value to use in the Input# statement that will make sure it goes to the end of the record?
I do not know for sure if I am going to have a crlf at the end of the record.
I just know that the file is written with the write statement and in the text file they are on seperate lines.
Hope I gave enough information TheKing
![[pc3] [pc3] [pc3]](/data/assets/smilies/pc3.gif)