Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] File writing issue

From: mattsmac::hotmail::com at: 29-Oct-2003 16:36

Ok here's one more for everyone to ponder. When you write a file in rebol that is somewhat large (around 1 meg or so) and then immediately after writing it you want to do something with it (email it, etc) I get an error message that the file is not there. On inspection of the directory where it is supposed to be, it is there. So I'm guessing there is a little delay between the time when you write the file (and rebol returns) until the file is really accessable. So I put this line of code in to counteract that while [not exists? file] [] to make it wait for the file to be there. So now I can do things with the file, but not the whole file. When I email it it usually shows up as 64B. So then I entered this line of code while [size? file <> fsize] [] ; where fsize is how big the file should be, thinking that the file might get written to the disk in peices so I want to make sure the whole file is there before doing stuff with it. This didn't work either, it did wait, but the file still doesn't come through complete. Any suggestions? Matt