Help with text files in linux

Joined
Oct 19, 2008
Messages
1
Reaction score
0
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top