Vai di powershell

codice:
[int](gc nome_file.txt)[2] -eq 0
il codice restituirà true o false.