Im trying to remove string from file by seeking its position then remove. I dont want to store the entity file in a string than replace. I need to replace it directy on the file, is there any way I could do this?
I have to find the "#" then remove until I find the next.
Example: Remove #2 data from myfile.txt
#1|info1|info2|info3|#2|inf11|info12|inf22|#3|inf11|info12|inf22|
After remove:
#1|info1|info2|info3|#3|inf11|info12|inf22
How can I do this?