Creating a custom File Format

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Creating a custom File Format

Post by bidgeeman » Mon Nov 16, 2009 9:26 am

Hello all :)
I'm not sure if I have the right terminology.....but is it possible to make an application tha has it's own file format? Say if someone wants to save a configuration of images in a stack. Can you make your own project file format that a user can save to?

Any advice would be greatly apprectiated.

Thanks
Bidge

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Nov 16, 2009 10:54 am

Sure - you can create XML or text files, or with a bit of work binary files to contain the project data. But you can also re-use the efficient stack format: save the relevant data as custom properties of a simple stack, and then use a different file extension (and stackFileType if you're on a Mac).

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply