Page 1 of 1

FOR not loading files with extremely long line

Posted: 24 Jun 2009 21:39
by bodosko
I'm having a problem...
When I use the FOR command to load a file that has just one realy long line (like 50000+ chars). it does not load and no warning error appears, looks like the file was loaded, but no lines were found.

Code: Select all

for /f "tokens=*" %%c in ("%file%") do (...)


Why ? How to correct this?

Posted: 25 Jun 2009 07:00
by jaffamuffin
Yes. Probably some kind of limit.

There's probably another way you can do this, what is it exactly that you are trying to do?

Posted: 25 Jun 2009 14:19
by bodosko
Im trying to load this file to get some values of this line.
And write another file with these values.

More specifically, I want to get time and text values to make a subtitle.

Posted: 25 Jun 2009 15:42
by jaffamuffin
i'd probably use sed or something similar to extract patterns of text.