how to read a file, line by line, into a GString?



dear all,

i'd like to read a file, line by line (discarding newlines) into a GString.

i can't figure out how to do this without using an intermediary char *, which
defeats the whole purpose of using GStrings in the first place.

well, i CAN do it using GString foo->str, but of course, i want to use
GString's access functions; not trample over its string data...

thanks!
pete

-- 
"The following addresses had permanent fatal errors..."      p dirac org
                               -- Mailer Daemon              www.dirac.org/p




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