Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Saving login information into a text file in my GUI App

  1. #1
    Member
    Join Date
    Sep 2012
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Saving login information into a text file in my GUI App

    Hello there

    i have question i wonder if it possible.
    I have a simple GUI where i have a log-in system, but i want to know if it possible to keep the log-in information in a txt file. and when you log-in you have a other or the same txt-file where you can write and read in.
    if not do someone have a other simple way of doing so?

    hope someone can help me


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Saving login information into a text file in my GUI App

    Sure, that's possible. It's not very secure, but it is indeed possible.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Member
    Join Date
    Sep 2012
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Saving login information into a text file in my GUI App

    it don't need to be secure at all ^^ that is not my focus point at the moment now i just want a login system and be able to open you personal file ^^

    --- Update ---

    But i have onemore quiestion i would like to ask
    Is it possible to have to a date in a line follow by some text and in the end some numbers, and then in the end of the txt file you make a total of those numbers.
    Like this

    11/11/11 something 100
    12/11/11 something 100
    15/11/11 something 100


    total 300

    and then be able to write more lines in it so it calculates the total sum again and write it

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Saving login information into a text file in my GUI App

    What happened when you tried?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Member
    Join Date
    Sep 2012
    Posts
    30
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Saving login information into a text file in my GUI App

    when i tried what part?

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,357
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Saving login information into a text file in my GUI App

    Quote Originally Posted by lf2killer View Post
    when i tried what part?
    Whichever part you want to ask about. Oftentimes it's much easier to just try something instead of asking "is it possible to do...". Try it out, throw together an SSCCE if you're confused, and we'll go from there.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 3
    Last Post: August 30th, 2012, 02:38 PM
  2. Java web app, Saving to desktop?
    By Java Programmer in forum What's Wrong With My Code?
    Replies: 14
    Last Post: January 21st, 2012, 03:41 PM
  3. Replies: 0
    Last Post: December 15th, 2011, 12:14 PM
  4. Saving to a text file
    By PsYNus in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 15th, 2011, 10:57 AM
  5. Reading from Text File and Processing Information
    By royalslim in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: December 13th, 2010, 02:27 PM