File

maikeljmaikelj Member Posts: 50
edited 2002-10-24 in Navision Financials
Hi everybody,

I have the following problem:

On one hand I have a text file with a line that has a length of 300 chars.
On the other hand I have a codeunit with a File of type File.
With textmode(true) I can only read 250 chars.
Is there a way that I can read 300 chars, and copy the first 250 chars.

With kind regards,

Maikel

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can open the file as binary, and read the line char per char. Check for chr(13)/chr(10) for the end of the line.
    Or you can use Attain 3.10 that can have variables with a length of 1024 chars.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.