vendredi 30 avril 2021

c# is it possible to check if a certain line of the file is empty?

I want to check if a certain line of a file is empty, and if it is, do something.

if(File.ReadLines("MainSave.txt").Skip(1).First() == null)
{
      // do something
}

Aucun commentaire:

Enregistrer un commentaire