Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

edditing properties for files

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can i edit properties for files to read again using an output stream, and if so, if this file has the extension jpg for example , will what i write to the fill affect how the file is displayed in Acdsee for example , my question is for any type of file.
if i can do that , then how i write to the file in order to reading these properties again.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whether or not you can append your own personal properties to a file depends upon the format of the file in question. Some file types perform exhaustive checking for validity, whereas others are more lenient.
In any event, you'll want to research the file formats you're interested in dealing with. If you're looking for a mechanism which can be applied to all files, regardless of type, it may be a better option to create separate files which complement existing files.
For example, if you have an image named "moose.jpg", your program could create a counterpart for it named "moose.jpg.properties" which would be a normal text file. In your program you could then grab all the filenames in a folder and check for any matching ".properties" filenames. Any files with matches would be the ones which have custom properties specified.
 
It means our mission is in jeapordy! Quick, read this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic