Reputation: 11734
Whats the best way to read/write file properties (like author, description, etc) in C#? I can use dsofile.dll to accomplish this but I wonder if this is the right way to go. (being unmanaged code?)
Any ideas?
Upvotes: 5
Views: 245
Reputation: 127457
Microsoft explicitly recommends dsofile.dll for use with .NET. Not sure why you think this would be inappropriate - it ultimately uses the very code that other structured file readers also use. Reimplementing this in managed code would be error-prone, and likely does more harm than good.
Upvotes: 5