Re: [gtkmm] Filling a TextView from a text file?



Murray Cumming Comneon com wrote:
> > From: Barnaby Gray [mailto:bee pickle me uk] 
> > Use istream::get or similar to read blocks of data from the text file
> > and insert it into the TextView - obviously you'll have to be careful
> > with encodings though, and avoiding splitting utf-8 characters between
> > blocks (in which case reading line by line, might be easier).
> You might also look at regexxer's source, because it must do the same thing
> somehow.

Grepping the sources for ifstream and ofstream didn't yield any results...
Are there any other standard-C or -C++ data types for files I should look for?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]