Jump to content

Changing A Line In The Middle Of A Text File


Recommended Posts

Is there a way to change a line in the middle of a text file without having to read the whole file and rewrite it, changing the one line in the process?

Both FileWrite and FileWriteLine write to the end of a file, what I'm looking for is a way to replace a line in the middle or beginning in a slightly more efficient way than described above.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...