- Online Community Forums » Programming Questions » writing text to an ALLEGRO_FILE

This thread is locked; no one can reply to it. rss feed Print
writing text to an ALLEGRO_FILE
William Labbett
Member #4,486
March 2004


trying to write some formatted text strings to an ALLEGRO_FILE but I'm not sure which functions to use.

I thought they'd be something like an fprintf() function...

What should I do ?

Neil Walker
Member #210
April 2000

format the string first then use al_fwrite?

[edit]if you're looking, that edit wasn't me putting in a smiley, it was me missing the submit button. This is what revisions do to you, they make you paranoid ;)

MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

Thomas Fjellstrom
Member #476
June 2000

al_fputs should work.

Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" --

Member #794
November 2000

Still, I can see a case for al_fprintf()...

Go to: