Simple c++ question please help

Microsoft Windows 7 home premium
March 10, 2010 at 12:27:12
Specs: Windows 7
I have a bat file that writes data to a txt file and i am trying to recover this data using a bat file once again. I can get the first line of a txt file but getting others i can not do so i was wondering. Is there a way to remove a line from a txt file. A example of what i want to happen is this.
3
4
5
6
becomes
4
5
6
and not

4
5
6

If you can find out how to do this thank you very much.


See More: Simple c++ question please help

Report •

#1
March 10, 2010 at 15:37:51
What does this have to do with C++? This could be one with a single command from CMD:
(for /f "skip=1 delims=" %a in (in.txt) do @echo.%a)> out.txt


Report •
Related Solutions


Ask Question