oranges place:canada season:summer
Apples place:usa season:summer
Kiwi place:Southamerica season:summer
//
now i search through the file, to delete the whole line "Apples place:usa season:summer"
i am not so sure how i can delete just that one line.
i though about,
1. creating a temp file
2. copying everything from this file expect for the line "Apples place:usa season:summer"
3. deleting the original file
4. renaming the temp file to the original name.
but i don't know how to delete a file nor how to rename a file
I don't exactly know, I'm a beginner as well, however have you researched into the fstream library? becuase that's almost definitely going to be where you find what you need.