The internal buffer used for SET /P is 1024 characters wide. One element is for the terminating null in C. Since a line on Windows ends with Carriage Return and Line Feed characters, lines that exceed a length of 1021 characters will result in an unreliable and probably faulty content of the line read. That was the reason for my question.
Elsewise, SET /P is commonly used to read the first line of a file. Called in a loop and applied to the same input stream, it is able to read linewise.
Steffen.
Some content of text file lost when printing to screen
Moderator: DosItHelp
-
- Expert
- Posts: 1163
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Some content of text file lost when printing to screen
Maybe they mean the
Code: Select all
<in_file >outfile