• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

want to create a new file extension that can only be opened by creator program

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i want to create a new file extension for example: filename.ktm where ktm is the extension of the file. and i want to make sure that only the specific software most probably the same file writer program can open, read it. (i dont want Notepad or any other program to open it).

how can we do this? what are the stuff i have to study and master to do this task?

thanks
 
Ranch Hand
Posts: 93
IntelliJ IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need to master anything, you need that your file isn't a text file. For example, you could have your information in a bean that
represents a register, then serialize it to a file, or you can have a text file serialized to base 64, or encrypted with some key, etc.
reply
    Bookmark Topic Watch Topic
  • New Topic