How would I go about deleting some or all of the text in a file?
I am using a browser based WYSIWYG editor and I need to overwrite the existing text with the new text.
I know how to write to or append to the file. But this adds to the original text and I can't do this.
Ideally, I would like to delete all but the first line in the file, as it's actually a user control (.ascx) and I need the first line to stay. However, I can always grab it and rewrite it when I replace the original text.
Thanks.
I am using a browser based WYSIWYG editor and I need to overwrite the existing text with the new text.
I know how to write to or append to the file. But this adds to the original text and I can't do this.
Ideally, I would like to delete all but the first line in the file, as it's actually a user control (.ascx) and I need the first line to stay. However, I can always grab it and rewrite it when I replace the original text.
Thanks.