how do you read and write to a data file that the program ( microsoft visual C++) itself creates (which i also need to know how to do)? for instance, if the user inputs a variable, how (and what are the commands to) do you write that variable to a file? How do you then read that file from a program and what are the commands?