Re: HELP- with open("ab")
- Posted by Al Getz <xaxo at AOL.COM> Aug 24, 2000
- 425 views
The problem is a text file should be opened in "a" mode (append text). --Sample: --say textfile1.txt is an existing text file... include file.e atom fp1 --opens text file in append text mode: fp1=open("c:\\Euphoria\\Projects\\Tests\\textfile1.txt", "a") --prints next line in text file: printf(fp1,"%s\n",{"This will be next line printed to text file."}) --closes the file: close(fp1) --the documentation for Euphoria v2.0 says the file must exist, yet --opening in the "a" mode with a filename that doesnt exist starts --a new 0 length file as if opened in the "w" mode. Good luck with it, --Al