samedi 10 octobre 2020

Removing line of text from text file [duplicate]

I was wondering how I could remove a line of text from a text file containing a specific string using streamwriter or streamreader in c#, but I don't know where to start. I'll try to write my idea below

if (string == AStringInTheFile)
{
   *Remove all info on that line*
}

Aucun commentaire:

Enregistrer un commentaire