Tab for file.read and file write

OnewayOneway Member Posts: 53
G'day all

Do you guys know how can to read and write Tab from/to a text file?
not in dataport but using file.read and file.write


thanks!!!!

Comments

  • krikikriki Member, Moderator Posts: 9,110
    Make a variable in which you put the tab-char.
    txtTab := 'Z';
    txtTab[1] := 9; // now in txtTab, there is the tab-char
    

    To use it:
    filFIle.WRITE("Field 1" + txtTab + "Field 2" + txtTab + "field 3".
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • tedcjohnstontedcjohnston Member Posts: 41
    This is for all those who post here- I love you guys!

    I know it's been said before, but this site is my go to site for all questions NAV. You have solved more problems than you will ever know. I rarely need to post, I just search.
    "There are only two truly infinite things: the universe and stupidity. And I am unsure about the universe." - Albert Einstein
    Corollary- Build and idiot proof system and nature will build a better idiot.
Sign In or Register to comment.