use Sprintf like Mr.MageMan said, look it up first though lmao
[php]std::ifstream file;/pe to read a file
char text[1024];//ur text u want to print with max 1024(kb) letters
file.open("your.file");//open ur file
if(file.good())//if this file is exist
while(!file.eof())//as long not the end of file
file.getline(text,1024);//get 1024 letters from the file if they are not 1024 its ok but more it will not read
file.close;//close ur file[/php]
[php]std::ifstream file;/pe to read a file
char text[1024];//ur text u want to print with max 1024(kb) letters
file.open("your.file");//open ur file
if(file.good())//if this file is exist
while(!file.eof())//as long not the end of file
file.getline(text,1024);//get 1024 letters from the file if they are not 1024 its ok but more it will not read
file.close;//close ur file[/php]