Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strings n streams n structures

Status
Not open for further replies.

zaphy2k2

Programmer
Dec 23, 2001
30
GB
Hi,

I need to stream a file into a string, and then insert this into an XML document in xerces. How do i get all of the file into a string so i can insert it? (Not using any MFC either). I also need to put a structure's data into the XML Document. i can write a structure to a file and read it back, but how would i write it into a string and convert it back? Examples or tips would be a great help.

cheers

aaron
 
Oops, forgot to add. i can get the file into a char[] of a fixed size, but how do i get it into a char* of indeterminate length?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top