Re: Run Euphoria without installing -- Use the Slax module

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
jiri said...

when I try to open a non-existent file for 'append' under linux I get an error. Under windows, agreeably, an empty file is quietly generated.

Can someone else confirm this effect? Looking at the source code, Euphoria's backend calls the 'fopen' C function, which according to the Linux docs will create a file in 'append' mode if the file doesn't exist.

Using r3021, the following code works fine for me (it creates the empty file and prints a file handle of 3):

integer h 
h = open("/tmp/hty.hty", "a") 
? h 
close(h) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu