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!

for (i=1;i<2;i++){fn = "frame" & i & ".bmp"}

Status
Not open for further replies.

bitmap

Programmer
Feb 18, 2002
1
US
I want to read successive filenames (frame1.bmp, frame2.bmp, etc) How do I do this? Thanks
 
judging from your title, I assume you want to try to do something like this

Code:
for(int i = 0;i<n;i++)
{
   spritnf(fn,&quot;%s%d%s&quot;,&quot;frame&quot;,i,&quot;.bmp&quot;);
   ...// use fn for file name to do your processing

}

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top