Return First Character from Text File

This is how you return the first character, from the first line in a text file.

set count=1
for /f “delims=” %%a in (text.txt) do (
if !count!==1 set FChar=%%a
Set FChar=!FChar:~0,1!
set /a count+=1
)

echo %FChar%
Pause

email me