How can I read the first line from a text file using a Windows batch file? Since the file is large I only want to deal with the first line.
uh? imo this is much simpler
set /p texte=< file.txt echo %texte%
2.1m questions
2.1m answers
60 comments
57.0k users