Ben Sprinkle
January 6th, 2007, 02:13 AM
Can anyone show me how to make a fstream like thing that saves the buffer into a file?
Also how to make a save file dialog?
cabalas
January 6th, 2007, 04:42 AM
the save dialog works much the same way as the open one does, it's still a file chooser dialog save that the file chooser action is Gtk::FILE_CHOOSER_ACTION_SAVE, to write the text out to the file once it was open all I'd do is (assuming file is the filestream and mText is the Gtk::TextView):
file << mText.get_buffer()->get_text();
Hope that helps.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.