0
Answer

file header reader?

Jensen

Jensen

14y
4k
1
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,