Re: Simple Euphoria Suggestion

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu