Results 1 to 8 of 8
  1. #1
    fred is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default How can I save the content of textfield in a text file?

    How can I save, what I write in a TextField, in a text file?
    any ideas?
    thanks

  2. #2
    leonard is offline Member
    Join Date
    Jul 2007
    Posts
    43
    Rep Power
    0

    Default

    can you paste the code? maybe I can help you
    ;)

  3. #3
    fred is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    hi leonard
    I solved it!

    I wrote:
    Java Code:
    out.write("Name: "+Fr.getNume()+"\n");
    instead of
    Java Code:
     out.write("Name : " + t1.getText() + "/n");
    where fr it's a class
    and t1 it's a textfield
    if you want I send the all code
    thanks !

  4. #4
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Default

    hey fred,
    I just joined the forum.

    can u send me the code plzzzzzzzz.

  5. #5
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Default

    hello to all of the forum's member

  6. #6
    promotion is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Smile thanks

    hello everybody. thanks

  7. #7
    promotion is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Default

    how can I save the content of textfield in a text file and to begin a new line?
    can you help me?

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Writing text into an image and save it
    By elcapi in forum Java 2D
    Replies: 6
    Last Post: 09-18-2009, 06:47 PM
  2. How to Save/Load Vector to/from file
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-14-2008, 09:37 PM
  3. save file to database
    By katerinaaa in forum New To Java
    Replies: 0
    Last Post: 08-14-2007, 01:15 PM
  4. Replies: 1
    Last Post: 08-07-2007, 06:35 AM
  5. Replies: 1
    Last Post: 08-07-2007, 06:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •