'c++ delete specific line number in a text file

I've been having some trouble achieving this functionality. I haven't been able to find code resolving this specific issue anywhere.

Thank you for taking time to help me, it means a lot

c++


Solution 1:[1]

I made my own getline() with while() in it with an integer that increases with every line, and the number that i entered ignores the number of that line, writes to a new file, removes the original file, and renames the temporary file to the original, many thanks

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Drason