How to read Character by Character from a Text File using Dotnet Assembly .???

kovaidonkovaidon Member Posts: 55
How to read Character by Character from a Text File using Dotnet Assembly .
While Searching fro correct Dot Net syntax, i have found StreamReader.ReadBlock, which reads a string Character by Character.

The Problem now am facing is, if i applythis Dotnet syntax according to CAL Code , am getting error...

Could you please any help me how to apply this syntax in NAV system, so that it works.

if any one have better idea , please share the same.

Expecting your help.

Thanks in Advance!

Answers

  • Wisa123Wisa123 Member Posts: 308
    edited 2016-01-07
    Some pseudocode for you

    StreamReader := StreamReader.StreamReader(Filepath)

    while (streamreader.Peek() >= 0) repeat
    message(format(streamreader.read());
    Austrian NAV/BC Dev
Sign In or Register to comment.