hello,
i have a very big text file, am using fgets() to get the contents of the file line by line. but i need to delete some text from the file if certain condition is met.
ex:
hello world am string number 1 hello world am string number 2
hello world am string A hello world am string B
lets say a condition is met in string 1, then i want to delete string 1 and 2, but do nothing to string A and B