Update&Delete Records in a C# DataGrid using .txt file
How to Update&Delete Records in a C# DataGrid and textfile .txt in c#.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ali tuncerPosted Apr 5, 2016, 11:13 PM
You can read text file to a list, remove item, and write back..
List myList = File.ReadAllLines("contact.txt").ToList(); //read
myList.RemoveAt(0); //removes first line
File.WriteAllLines("contact.txt", myList.ToArray()); //write back modified list
S M Fasih ALiPosted Apr 12, 2016, 2:34 PM
Rajeesh MenothPosted Apr 6, 2016, 2:41 PM
S M Fasih ALiPosted Apr 6, 2016, 2:38 PM
Rajeesh MenothPosted Apr 6, 2016, 12:22 AM
S M Fasih ALiPosted Apr 5, 2016, 4:42 PM
Rajeesh MenothPosted Apr 5, 2016, 1:47 PM