|
-
March 7th, 2004, 08:32 PM
#1
Reading input and parameter
I would like to know how i can read a parameter and also an input while running the program.
assume my program name is "readfile"
I would like to make it in such a way that when i type "readfile parameter < filename", it will run the readfile program and in the program it will read the parameter and also the filename. How can i archieve this ? For your information i am coding this in C and not C++.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|