• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I need an advise about sharing/transfer a file

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic