It was a basic attempt at catching the error.Synewave wrote:...David, I am wondering the reason why you coded this line?
What I am saying is if the file name for realtime.txt is returned in the data it reads from the server then assume an error, if not (i.e. -1) then we have some good data.
For me, when it failed to read realtime.txt my server returned an error saying it "could not find the file realtime.txt" so I was checking to see if that is what it returned.
Does that make sense?