So basically my program should read from the input file, edit the text according to given commands and save the output (without commands) to the outputFile.
There are few commands:
% remove - removes space characters from this line
% remove xyz - removes string from this line
% count - counts space characters in this line
% count xyz - counts strings in this line
Here is the example:
"inputFile"
Hello World !!!% remove
ABCABC% count A
"outputFile"
HelloWorld!!!
A: 2
as u can see only the result is saved to the output without % and command
And the problem with my project is that it does save things only before '%' character and I dont know why it doesnt save edited text.
I sent 2 pictures with my function that should both edit and save things.
Any help will be appreciated!