GtLine = Text = Size 1
1.
If I use:
File.Read(GtLine)
and the ascii line is longer then 1 position NAV generates an error.
How to read only 1 character at a time?
2.
I can do it with an instream:
Instream.Read(GtLine, 1)
But now I can't use the .seek function... (I need this too :? )
3.
Below does work, after a seek:
File.SEEK(2);
File.CREATEINSTREAM(Instream);
Instream.Read(GtLine, 1)
But I don't know if this will create new problems if it is called 20000 times?
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Normally while reading textfiles I would use the function ansi2ascii
but if I do this with the type Char characters are converted???
Here is my code:
Without this line everything is ok, is this correct?