[RESOLVED] Des File.ReadAllBytes preserve a files structure
Hi,
Im currently working with MP4 files. The methods im working on open the file and begin to traverse the "atom" tree contained within which is essentially a structure that I need data from. This means I need to keep the file in use while I traverse the tree, would it be better to use File.ReadAllBytes and traverse and Array instead?
Re: Des File.ReadAllBytes preserve a files structure
If locking the file while you traverse it is an issue then you might be better to use an in-memory array, as you suggest. It might also be faster, depending on exactly what you're doing. You might also consider copying the data to a MemoryStream if working with a stream is easier.
Re: Des File.ReadAllBytes preserve a files structure
Cheers Jmc,
Thread Resolved!