Jensen

Jensen

  • NA
  • 5
  • 0

file header reader?

Jun 26 2010 5:51 AM
Hi everybody,

I would like to know how can i read the header of all sort of of files.

to be more specific, i want to write a function in c# that returns header of any local file.
I wanna call it like this

giveMeHeader("c:\folder\mytextfile.txt")

or 

giveMeHeader("c:\folder\song.mp3")

and that returns me full header information and data context, both as string.


Then I want to store two information on DB or somewhere else to create files whenever i want with header and context info.


How can i do this from the easiest way?


Thanks a lot in advance,