Loading And Saving To Files

I need to know how to make my program save user input to a file and reference from it in the future. prefibly to a text file and if theirs a way to encrypt the file?
Topic archived. No new replies allowed.