EOF

  • Thread starter Thread starter http://kbupdate.info/
  • Start date Start date
H

http://kbupdate.info/

Hi!
Is there a way of knowing using System.IO if an EOF char exist, I'm getting
a file though FTP and I want to know if the whole file reached before
starting to read it.
Thanks

kb
http://kbupdate.info/
 
http://kbupdate.info/ said:
Hi!
Is there a way of knowing using System.IO if an EOF char exist, I'm
getting a file though FTP and I want to know if the whole file reached
before starting to read it.
Thanks

kb
http://kbupdate.info/

I'm pretty sure not; this question gets posted pretty frequently.

What you can do is use a loop: try to open the file, and if it fails, use a
timer to wait 20 seconds or something and then try again.

I don't know if you can read the file while it's being copied before it's
finished. If you can, then you may need to try t open the file with write
access, i.e. locking it. You'll have to muck around with it.

Hope this is helpful in *some* way. :-)

Robin S.
 
Back
Top