PDA

View Full Version : How to ensure read_file reaching end on each line?


Lim Chee Beng
03-20-2003, 09:35 PM
In OSDD macro, READ_LINE will take only maximum of 1023 characters. Probrlem arises when 1 line of text is longer than 1023 characters.
1. Can anybody recommend a way, ensuring macro always read till end of each line (regardless # of characters)?
2. Is a string variable also limited to hold certain # of characters?

:confused:

Lim Chee Beng
03-20-2003, 10:31 PM
Originally posted by Lim Chee Beng
2. Is a string variable also limited to hold certain # of characters?

:confused: [/B]


I found that a string variable is limited to hold 1023 characters. DISPLAY is also limited to the same # of characters as well. But, is there a way to hold/display >1023 characters in a single variable?

bfisher
03-31-2003, 12:29 PM
Lim,

You describe a most unusual situation. Does this have anything to do with reading unix formatted text in a windows/dos environment? If so, the solution is to convert the text to dos first.

Other than that, you will probably have to use a programming tool like VB, Delphi, C++, Pascal, etc., and read in the file one character at a time until you find the LF/CR characters. It's a slower process, but gives you more control.

Good Luck