Re: Simple Euphoria Suggestion
- Posted by Robert Craig <rds at RapidEuphoria.com> Sep 25, 2003
- 425 views
Bernie Ryan wrote: > If I open a file and I am writing to it and do not close it > and the program ends. Euphoria closes it and it is an empty file. Try this: integer debug_file debug_file = open("debug.out", "w") for i = 1 to 10 do printf(debug_file, "%d. Euphoria\n", i) end for -- No close()!!! - Doesn't matter If you really wrote something into the file, you would see it, unless there was a severe crash that could not be handled by the interpreter for some reason - maybe your program or a .dll did something really nasty. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com