Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

wait for download

Posted on 1998-11-04
1
Medium Priority
?
178 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 300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
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.
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

963 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