Hi there:
I'm writing a program for reading a text file. This file will be updated every minute.
The file is on a PC called 'X' and the program is going to be executed on a web server (a different machine).
At this moment, I'm hesitating about the most convenient alternative for the location of the file:
1) Transfer the file with ftp from X to the web server
2) Sharing the file on X, and reading remotely from the web server
If I choose option 1, I don't know how 'elegant' could it be.
On the other hand, if I select option 2, what can I do in order to get a reliable copy of the file (I mean, I neither refer to copy nor transfer the file), but in the meantime my program reads the file, this one could be being updated and I my program will get incomplete or inconsistent information. In addition to that, does
Java allow reading a sharing file?, or has some restrictions about it?.
So, what I'm looking here is a hint about what can I deal with this stuff.
Thanx in advance,
Roger