text file problem, I have many files that end up like this
text file problem, I have many files,i chosed to split thm in 4000 lines each
i use this small batch script to split every 4000 lines:
@echo off setlocal enableextensions disabledelayedexpansion set "nLines=4000" set "line=0" for /f %%a in ('type file.txt^|find /c /v ""') do set "fileLines=%%a" < "file.txt" (for /l %%a in (1 1 %fileLines%) do ( set /p "data=" set /a "file=1+line/%nLines%", "line+=1" setlocal enabledelayedexpansion >>"pass!file!.txt" echo(!data! endlocal )) endlocal
I ran a test here on a test file and did not see the condition you are reporting. Perhaps it is your input file, if you want to post that here (attach), and also attach (not paste) the actual BAT file (rename to TXT so it can upload) I will look at them to see if there is anything odd about them.
Also, that BAT file is the hard and slow way to split a file, you might take a look at the Unix split command. A Windows port can be obtained as part of this package:
Or with just a tiny bit of work you can grab a much more current version of these unix utils ported to windows from the portable version of GIT for Windows:
Here are the files from my test.
»bp