[gtkmm] Filling a TextView from a text file?



Hi folks,

is there a simple method to get the contents of a text file into a TextView?
Or do I have to carry the ifstreams into the TextView char by char?

I already tried getting the text file into a ustring using the ">>" operator,
like this:

  ustring text;
  text_file >> text;

But this only got me the file contents up to the first space char.

Thanks in advance,

  Markus



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