• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

Write to an Online File

 
Ranch Hand
Posts: 155
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys, I have Been Writing data to a .dat file in My Local Machine File.dat. I have FTP ed the File to an Online Location http://domain.com/File.dat. Is thete a way to write to the File now that it is not In My Local Machine?

I have Been Using this Code to Write to It...



Is there a way to do what Am trying to Do and if Yes, What is the best Way to do it?
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, a couple of things. First, once you FTP a file to another machine, you only sent a copy of it. You still have the file on the local machine, unless you deleted it.

Second, you can't make changes to the FTP'd file. You would have to make changes to the local copy, and then re-upload it. However, if you can connect that FTP location as a network share instead, then you could modify it directly. I think that was outside the scope of your question, though.
 
reply
    Bookmark Topic Watch Topic
  • New Topic