hi,

I've got a piece of code that works fine for me but in C and I'd like to
know if I can use a similar syntax with C++ file streams.

here is the code:

FILE * pdfinfo_F = popen("pdfinfo myfile.pdf", "r");
char buffer[1024];
if (!pdfinfo)
      // error handling

while (fgets(buffer, 1024, pdfinfo_F) != NULL)
{
      // ... line treatment
}


can I do sth like std::ifstream fin << popen(...)
or with a simple stream object...

thanks for your helpful suggestions
rapha�l


To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5526708.6599542.3001176/D=groups/S=:HM/A=2372354/rand=227393012


Yahoo! Groups Links

Reply via email to