File i/o

P

Profetas

Is there anyway to edite a line of a file without having to
copy the file to another file for example add the words
"extra" to line 10 and remove the line 11.
I know how to do that copying the entire file, I was looking
for some way to edit only the line


thanks
 
D

Default User

Profetas said:
Is there anyway to edite a line of a file without having to
copy the file to another file for example add the words
"extra" to line 10 and remove the line 11.
I know how to do that copying the entire file, I was looking
for some way to edit only the line


Not in standard C. If it's at all possible, it would be some
platform-specific thing. In practice, few if any implementations offer
such a thing.




Brian Rodenborn
 
M

Mark McIntyre

Is there anyway to edite a line of a file without having to
copy the file to another file for example add the words
"extra" to line 10 and remove the line 11.
I know how to do that copying the entire file, I was looking
for some way to edit only the line

This is a FAQ. - 19.14
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,372
Latest member
LucretiaFo

Latest Threads

Top