This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to write a file which is remotely located via Java?  RSS feed

 
dharma lingam s
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

in java we are able to write a file which is in the local system. Is it possible to write anything on the remotely located file..?? How we can achieve this in JAVA.

Tell some suggestions..

regards,
cooldharma06.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Writing files on another system depends of course on the operating system, utilities and security arrangements on the other system.

For example, you might have an FTP server on the other system.

There is no general answer to this question.

Bill
 
dharma lingam s
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i will explain the things. i am having one web applications which is running in the server. from that application i want to write some contents in some file.
 
dharma lingam s
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i am doing some file operations using java. i edit my local system files(like txt) by the file operations.

Now i want to edit the same files which is remotely located.

Example scenario:

Suppose the system having the ip:10.187.39.25. the txt file is located in /usr/src/xxx/yyy.txt.

by using the java program from my system i have to edit the yyy.txt file.

is it possible.? please guide me or send some suggestions.

Regards,
cooldharma06
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!