AnsweredAssumed Answered

Strange Issue Writing to Text or ASCII

Question asked by Lady_Jane on May 29, 2012
Latest reply on May 29, 2012 by bruce.nielsen
Hi everyone, I'm just playing around with python's intermediate window:
file = open (r'F:\path\testasc.asc', 'w') >>> file.write ('1 2 : 3') >>> file.write ("1 2 : 3")

I keep doing this with .asc and .txt files and when I open the file (the files are always correctly created) nothing ever appears.
I thought there was an issue with the code, but I randomly opened testasc.asc and bingo! the two lines above were in the file.  I closed it and opened it again, and, poof! the lines are gone.  I cannot get them to reappear again.
I must be missing something, anyone know what's going on?