Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi I have a text file that looks like this:
0x19, 0x01, //comments
0x29, 0x02, //comments
0x15, 0x00, //commentsHow can I split the lines so it looks like this:
0x19,
0x01, //comments
0x29,
0x02, //comments
0x15,
0x00, //commentsAnd resave the file.
Thanks
Squib

Try making a Batch file like this. It will save the output to a new file in the same directory as the batch.
@echo off
For /f "tokens=1,*" %%a in (Text.txt) do (
echo %%a >> New.txt
echo %%b >> New.txt
)

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |