Re: interesting bug, possibly useful

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
useless said...

I stumbled and fell all over this one today. This doesn't error out:

trace(1) 
writefile = 0 
writefile = eu:open("junk","w") 
puts(writefile,writedata) 
close(writefile) 
readfile = eu:open("junk","r") 
  junk = gets(readfile) 
close(readfile) 


Both open()s return 3, there's no error, no crashes, and the gets() from the file(?) are correct valid data, but there's no file written to harddrive.

Praps this is the way to make windows pipes? Just substitute the "TheNameOfYourPipe" for "junk"?

useless

There should a file called "junk" written in the current directory of the program.

Unless you have some other issue (such as the current directory being on a disk that's full or a disk with lots of bad sectors on it, that would cuase the write to fail).

If this is the case, then this behavior is not a bug.

Otherwise, the lack of any file is a pretty serious bug.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu