Home > Net >  To add delete and update the TXT document
To add delete and update the TXT document

Time:09-25

Read a file search inside of the user and password, how to add/remove user and password in the document? Great god is solution [the requirements is to manipulate] the TXT documents

CodePudding user response:

STRS. AddRange (user);
Later, still need to write the STRS back file,


File. You can also consider to AppendAllLines and File AppendAllText method,
AppendAllLines: add more lines
AppendAllText: additional full-text
  •  Tags:  
  • C#
  • Related