Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to save input before closing program

nacho513nacho513 Posts: 9Member
Hello
Im new to programming and i would like to know how to save input in my program without saving it to a text file.
Thanks for the help in advance.

Comments

  • VilanyeVilanye Posts: 684Member
    : Hello
    : Im new to programming and i would like to know how to save input in my program without saving it to a text file.
    : Thanks for the help in advance.
    :
    You will have to save it in some file format. It doesn't have to be a text file. A text file is a common way, but if all your data you are saving is in a single class, you can implement the serializable interface and then save it as a binary file, but it is still just a file.

    How else would you expect you can save data when the program is not running or the machine turned off?

    Note that technically a text file is a binary file, so when I said binary file above I meant a format that will not be very readable, if at all, by humans if the file is opened in notepad or whatever.
    [italic][blue]Just my 2 bits[/blue][/italic]

Sign In or Register to comment.