Don't focus on improving the performance of your program, as a solution for this. I am not saying you should not improving the performance of your program, but I am saying it is not a solution for this problem.

The point is that, whatever how fast your porgram is, there is still a chance that it is not fast enough for you to catch the file EVERY TIME, before it is gone.

I always believe that a solution has to a solution, not something that improves the chance.

I think you have to look at what you are trying to do again, and resolve this as a whole. Never waste your enegy on things, for sure, will not work all the time.

Synchronization is the way to go. However I don't know your entire story, and I cannot really help in the details, but thru your capable hands, nothing is unresolvable, but make sure go straight, don't be side tracked.

In reply to Re: fastest way to open a file and stroing it? by pg
in thread fastest way to open a file and storing it? by snam

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.