Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2004

Tip: Looking for answers? Try searching our database.

to edit a .txt file on a server

Thread view: 
Alex Cejka - 15 May 2004 18:22 GMT
Hello folks,

To save or delete strings in a textfile which is on my HD is no
problem but I have no clue how to do it with a text file
that is on another server.
Do I need to use a URL and save in into a read/write stream?

Thanks,
Alex.
Roedy Green - 15 May 2004 18:39 GMT
>To save or delete strings in a textfile which is on my HD is no
>problem but I have no clue how to do it with a text file
>that is on another server.
>Do I need to use a URL and save in into a read/write stream?

You need some assistance from the server.  Ideally a Servlet that runs
on the server to do it for you when asked, that tries until the file
is not busy, copying to a new file then renaming.

see http://mindprod.com/fileio.html for how to do the fileio.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.