I know that we can add lines of text to a file, but is it possible to delete lines or to edit lines of a notepad or a .txt file in C?
I know that we can add lines of text to a file, but is it possible to delete lines or to edit lines of a notepad or a .txt file in C?
Only by the cross are you saved...
do u know whether there are any specific commands to edit and delete lines and what are they?
i have friends who told me that the weakness of C is that you cannot edit a notepad file...
Only by the cross are you saved...
To edit a file, read it in, make the changes in memory, then write out to a new file. When you're done, rename the new file over the old.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
i see, okok, so we have to store it temporarily first to edit it eh?
er.......really dunno, wat language is it written in?
Only by the cross are you saved...
Yes and C.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
Are your friend programmers? And if they are what language do they program in? Just curious.i have friends who told me that the weakness of C is that you cannot edit a notepad file...
Dohojar Moajbuj
Time is the greatest teacher, too bad it kills all its students
now that i know it is possible, i guess they were either pulling my leg or discouraging me from trying it out, thanx guys...
Only by the cross are you saved...