I have a project, and part of it is to read a text file using the cin in Linux. I asked him for help and he said when you run the program it should look like this
test < test.txt (or something like that).
Problem is he didn't tell me how to get the program to use it. So all I know is how to do it when the program runs, not how the program uses it as the standard input. Can anyone help me?
test < test.txt (or something like that).
Problem is he didn't tell me how to get the program to use it. So all I know is how to do it when the program runs, not how the program uses it as the standard input. Can anyone help me?