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



Barnaby Gray wrote:
> 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).

Thanks for the warning, the utf-8 trap would have caught me completely
unprepared...

Is there a difference in performance between bytewise and blockwise reading?

Best,

  Markus



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