Solved

wait for download

Posted on 1998-11-04
1
173 Views
Last Modified: 2010-04-02
I have coded a little program which checks for new files in a directory and sends the filename name to another program but now to the problem... when someone sends a quite big file or have a slow modem (by ftp)my program discover the not fully downloaded file and executes the other program who cannot (ofcourse)read the file...
how do know if the file is fully downloaded?
0
Comment
Question by:webrage
1 Comment
 

Accepted Solution

by:
d94stein earned 100 total points
ID: 1176934
One solusion to the problem could be to try to open the file
for update. If the file isn't closed yet you will not be able
to do this, but if it is closed (download finished) you will
be successful and you could just close the file and send
the filename to the other program.

Depending on the system you are using there could be better
solusions.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question