EOF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • http://kbupdate.info/

    #1

    EOF

    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
    PDF editing resource hub with step-by-step guides, tool comparisons, expert tips, security advice and a complete FAQ for every PDF editing task.



  • RobinS

    #2
    Re: EOF


    "http://kbupdate.info/" <@wrote in message
    news:uLxLqESUHH A.4260@TK2MSFTN GP06.phx.gbl...
    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
    PDF editing resource hub with step-by-step guides, tool comparisons, expert tips, security advice and a complete FAQ for every PDF editing task.

    >
    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.


    Comment

    Working...