in reply to
Re^3: Remove a Line
in thread Remove a Line
The Data file here is the output to the file and the screen:
There are 16 Car(s); <---- This line needs to be removed
There are 4 Hopper Car(s) <---- This is the output
Which is false there are Not 16 cars there are only 4 cars.
What file? You're opening two files, both are "data" files, do you mean the input file?
Your program opens an input file for reading
opens an output file for writing
writes stuff to output file
It doesn't modify input file
Do you want to modify the original file, do you want to rename outputfile to inputfile?
Non-existent; I don't have TV
Non-existent; my TV doesn't have/need a remote
Under my control; I watch alone
Under the control of whoever shouts loudest
Under the control of whoever gets it first
One of many, and the TV has a mind of its own
Results (487 votes),