Discussion: file position
Afficher un message
Vieux 30/06/2008, 09h26   #2
Alf P. Steinbach
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: file position

* nkomli@gmail.com:
> When outputting or inputting to a file is there some easy way to move
> to and overwrite a specific line?


No, not if you're talking about an ordinary text file.

That hasn't anything to do with C++, it has to do with the structure of an
ordinary text file.


> With seekg it seems you can only
> move positions without knowing whether you've moved to a newline or
> not.


Yes.


Cheers, & hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
  Réponse avec citation
 
Page generated in 0,05351 seconds with 9 queries