943,965 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1504
  • Java RSS
Feb 16th, 2006
0

Saving files

Expand Post »
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????
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
jigvesh is offline Offline
44 posts
since Oct 2004
Feb 16th, 2006
1

Re: Saving files

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.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Feb 16th, 2006
0

Re: Saving files

but what if its an image.......lets say something in the lines of..lets say visio.......
Reputation Points: 10
Solved Threads: 0
Light Poster
jigvesh is offline Offline
44 posts
since Oct 2004
Feb 16th, 2006
0

Re: Saving files

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).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Help!!
Next Thread in Java Forum Timeline: Job Opprtunity: Senior Java Engineer for Fixed Income Trading Development





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC