![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2006
Posts: 11
Rep Power: 0
![]() |
checking arguments
Hi All,
I have a program which takes a file as an input and does some processing depending upon the type of file passed. The file types are : abc_txt, abc_ply, abc_cnvinf, abc_laneinfo etc eg: DoWork [FileType] [File] ./DoWork txt abc_txt (or) ./DoWork cnvinf abc_cnvinf Now I have to perform a check, like if the type and file do not match it should give an error. That is it should check if the type and _XXX are same. How do I proceed doing it?? I have no idea.. can anyone help?? Squirrel |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Dec 2005
Posts: 33
Rep Power: 0
![]() |
You can use command line arguments for this
__________________
The only real valuable thing is intuition. -Albert Einstein |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Combining languages | titaniumdecoy | Other Programming Languages | 12 | Jul 13th, 2006 3:03 PM |
| Passing vectors as arguments | Soulstorm | C++ | 6 | Mar 18th, 2006 5:49 PM |
| checking file existing time to time, in the same time program do other operation | myName | C++ | 3 | Mar 13th, 2006 9:39 PM |
| Arguments in C++ | coldDeath | C | 12 | Aug 22nd, 2005 8:18 PM |
| Comparing arguments to strings | layer | C++ | 2 | May 7th, 2005 3:39 PM |