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????

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.

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

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).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.