Own Extensions

Hello,

I've made a program, in which I use a file to calculate some stuff.

This file is a txt. - file.

My problem is, that this file may not be readable by any user. And in fact, they can open it in some kind op spreadsheet like WordPad, and change it if they want to.

So I was wondering if it was possible, to give the file an own invented extension, f.e.

myfile.moie

-> moie = MyOwnInventedExtension

So my program would be the only one, that could open the file.

An other solution could be by placing a password on it, by windows itself.

So when you try to open it, you have to give the pass...

But I don't know if that's possible,

Best Regards...

[729 byte] By [NashuAa] at [2007-10-2 17:30:16]
# 1

> So I was wondering if it was possible, to give the

> file an own invented extension, f.e.

>

> myfile.moie

>

> -> moie = MyOwnInventedExtension

>

Yes. File extensions don't really mean much; they are only used to associate a default application with a file "type" on Windows.

> So my program would be the only one, that could open

> the file.

No. Anyone can still open your file in any application they want, regardless of extension.

Lokoa at 2007-7-13 18:47:06 > top of Java-index,Security,Other Security APIs, Tools, and Issues...