I have a file, which I read into a buffer.
I wish to be able to replace a certain string in this buffer, which may appear on multiple lines.
I have a function which replaces a string within a string, and was wondering if there exists a similar function for the buffer
For example: the file contains the following:
I wish to be able to replace
2956 REWORK: last status was:PASS
and end up with
2956 PASS (Replacing REWORK: last status was: with a blank
The file consists of many REWORK lines, and exceeds 255 characters.
When I attempt to use stringOf(buffer), I get a 254 character restriction.
My original thought was to put the file into a buffer, turn it into a string, modify the string, then convert the string back into the buffer.