The Artima Developer Community
Sponsored Link

Java Answers Forum
Modifying a txt file on my pc by using an applet form

5 replies on 1 page. Most recent reply: Jul 8, 2002 9:54 AM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Davide Seddio

Posts: 4
Nickname: daviderda
Registered: Jul, 2002

Modifying a txt file on my pc by using an applet form Posted: Jul 5, 2002 9:32 AM
Reply to this message Reply
Advertisement
Is it possible to modify a txt file by writing in it the information filled in an applet form? If not is there another way by using java to do this operation?
Thanks


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Modifying a txt file on my pc by using an applet form Posted: Jul 5, 2002 5:34 PM
Reply to this message Reply
No and yes.

Davide Seddio

Posts: 4
Nickname: daviderda
Registered: Jul, 2002

Re: Modifying a txt file on my pc by using an applet form Posted: Jul 6, 2002 3:05 AM
Reply to this message Reply
CAn you give me an example, or instructions, to do this?
thank you

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Modifying a txt file on my pc by using an applet form Posted: Jul 7, 2002 12:08 AM
Reply to this message Reply
To do what? Writing to a file with a Java application is, of course, trivial. An applet can only write a file to the url from which it is running, unless special security settings have been made for it. What exactly are you trying to do?

Davide Seddio

Posts: 4
Nickname: daviderda
Registered: Jul, 2002

Re: Modifying a txt file on my pc by using an applet form Posted: Jul 8, 2002 4:47 AM
Reply to this message Reply
I am trying to store the information filled in a form in a txt file, using java. The applet and the txt file would be on the same machine.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Modifying a txt file on my pc by using an applet form Posted: Jul 8, 2002 9:54 AM
Reply to this message Reply
Ah ha. Just as I suspected. It doesn't need to be an applet at all, it can be an application. You can easily make your applet run as an application; search this forum for "applet" and "application" keywords and you will find several hits, or just go to this thread:
http://www.artima.com/forums/flat.jsp?forum=1&thread=302&message=689&redirect=true&hilite=true&q=application+applet

Flat View: This topic has 5 replies on 1 page
Topic: Using JScrollPane Previous Topic   Next Topic Topic: Hello I have a Question on If statements

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use