Solved text file space after every 4 words

July 10, 2012 at 08:00:13
Specs: Windows XP
hi i need small program
txt data modefy

TEXT AFTER 4 WORD SPACE every 4 words
example
123456789ABCDEF1
OUT
1234 5678 9ABC DEF1


See More: text file space after every 4 words

Report •

#1
July 10, 2012 at 20:02:10
✔ Best Answer
@echo off & setlocal enabledelayedexpansion
(set sp= )
for /f %%a in (textfile) do (
set out=
set in=%%a
call :bild
set out=!out:~0,-1!
>> outfile echo !out!
)
goto :eof
:bild
if "%in%" equ "" goto :eof
set chunk=%in:~0,4%
set out=%out%%chunk%%sp%
set in=%in:~4%
goto :bild
:end

Report •

#2
July 11, 2012 at 02:34:26
manny manny thanks its workings ..............................

Report •
Related Solutions


Ask Question