(See the best response by DarkCampainger.)
I'm making a library to backup your game files from an open game, & I want it to make icons too
right now it makes text file for the icons & I can make maps from the .txt files

But how do I get it to make icons from the .txt files?
Thank you for looking ~Prf X
Best response
You can use fcopy() to copy a file, and flist() to list the files in a directory.

Unless you rename the file with a different extension, it should keep the correct extension. Can you show us what you've tried to far?
@DarkCampainger Thank you