MyFile.SEEK

skrikerskriker Member Posts: 2
edited 2014-03-10 in NAV Three Tier
Using SEEK function to get the position of the last entry in a text file and then start writing new text.

MyFile.SEEK(MyFile.LEN);
  MyPOS := MyFile.POS;

  MyOutStream.WRITE(Variable3); //WRITE TO FILE WITH STREAM
  MyOutStream.WRITETEXT(Variable4); //WRITE TO FILE WITH STREAM
  MyFile.CLOSE;

WRITETEXT is still overwriting the existing text, have I done something wrong?

Comments

Sign In or Register to comment.