Windows Batch Files - Version #2###2
@echo off
echo hello > fileio.txt
echo world >> fileio.txt
set /P answer=Insert:
echo %answer% >> fileio.txt
for /f "skip=1 tokens=*" %%A in (fileio.txt) do echo %%A
To explain that last horrible looking for loop, it assumes that there is only hello (newline) world in the file. So it just skips the first line and echos only the second.
Changelog
- #2 - Opps, must of misread the requirements or they changed on me. Now reads last line from file
2 - Opps, must of misread the requirements or they changed on me. Now reads last line from file