• Post Reply Bookmark Topic Watch Topic
  • New Topic

Write to an Online File  RSS feed

 
Stanley Mungai
Ranch Hand
Posts: 155
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • 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?
 
Wesley Baker
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!