ASCII file as input

I need to use ASCII files as input to my program, and haven't got a clue about how can i do that (the program should read the file's location from keyboard). So how can i include an ASCII type file into the code? Thanks for all the help beforehand!
Use an fstream. First, you can just get the location using getline(), and then pass it as the parameter of the fstream (or use .open()).
Here is a tutorial on input/output with files: http://www.cplusplus.com/doc/tutorial/files.html
Topic archived. No new replies allowed.