Tag: StreamReader

Reading and Writing textfile with Encoding

To read and write textfiles, in Dynamics NAV, with special Encoding, you have to use the StreamReader or StreamWriter class, and the Encoding class from .NET. With this you don't need your OEM2ANSI conversion functions anymore. Note that XML Port has encoding built in, and File in the latest versions also offers some simple Encoding … Continue reading Reading and Writing textfile with Encoding