1,105,417 Community Members

Custom File Type

Member Avatar
Light Poster
38 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]

Hi! I want to know how to make my own file type. I allready have a program that i made but i want to create a file type that only this program can read. i want to name the file extension ".rttf", which stands for "Robot Talk Text File." ill attach the latest version of my program source code. thx!

Attachments Robot_Talk.zip (1001.48KB)
Member Avatar
2,012 posts since Jun 2010
Reputation Points: 559 [?]
Q&As Helped to Solve: 403 [?]
Skill Endorsements: 36 [?]

Writing the file with your own extension is the easy part, just use the extension in the filename.. Associating the file with your program is a little more difficult, this link is pretty good at explaining what's involved.

Member Avatar
Reverend Jim
Noli mentula
5,460 posts since Aug 2010
Reputation Points: 761 [?]
Q&As Helped to Solve: 653 [?]
Skill Endorsements: 51 [?]

The easiest way to associate the file with your application is to right click the file and select "Open with" and "Choose default program". Then browse to your exe file and check "always use the selected program...".

This article has been dead for over three months: Start a new discussion instead
Start New Discussion
Tags Related to this Article