Something like this may be helpful here. This is an example for encrypting a String into an encrypted format. If you were able to get the content you wanted in the file in a string format, then encrypt it similarly to the way shown in the link, then output that to your file. That way when the file is opened they will merely have encrypted info (or to the untrained eye, a load of gobeldy goop).
As far as I know all file extensions are able to be opened in some format or the other, even if you have to resort to a low level application like notepad, so your best bet is to scramble the info inside the file.
Hope this helps!