Saving files

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2004
Posts: 44
Reputation: jigvesh is an unknown quantity at this point 
Solved Threads: 0
jigvesh jigvesh is offline Offline
Light Poster

Saving files

 
0
  #1
Feb 16th, 2006
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????
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Saving files

 
1
  #2
Feb 16th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 44
Reputation: jigvesh is an unknown quantity at this point 
Solved Threads: 0
jigvesh jigvesh is offline Offline
Light Poster

Re: Saving files

 
0
  #3
Feb 16th, 2006
but what if its an image.......lets say something in the lines of..lets say visio.......
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Saving files

 
0
  #4
Feb 16th, 2006
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC