954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Saving files

Well, i wanted to know if its possible to create a new format in which i can save and then open the files....lets say a .abc format which can be opened only in the editor developed by me.....i think it must be done in xml....if it is so then how????

jigvesh
Light Poster
44 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

Only opened by your program? You can save something as a different extension, but other programs will be able to open it and probably easily decipher the contents, especially if it's just text.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

but what if its an image.......lets say something in the lines of..lets say visio.......

jigvesh
Light Poster
44 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

You can save anything you want. It's just a bag o'bytes on the disk (or whatever storage medium you're using) after all.

Just use the correct stream classes (things like ByteArrayOutputStream) and set the file flags correctly (you may want a RandomAccessFile).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You