Hello,
What I need help with is to search an input file with a specific text givin by user (this is ok with me). The next step is what Im having problems with, see the user only know a certain input. Will call it Cars. What the user needs is how many car are available.
usrer input- ./available Cars
output to user- Number of Cars available = 25
example of input file..
Number of Cars available
there are 25 left.
Number of Trucks abvailable
there are 60 left.
Number of Vans abvailable
there are 60 left.
so on .....
What I need help with is to search an input file with a specific text givin by user (this is ok with me). The next step is what Im having problems with, see the user only know a certain input. Will call it Cars. What the user needs is how many car are available.
usrer input- ./available Cars
output to user- Number of Cars available = 25
example of input file..
Number of Cars available
there are 25 left.
Number of Trucks abvailable
there are 60 left.
Number of Vans abvailable
there are 60 left.
so on .....