Messing around with files, i found that i needed some extra functionalities when i Read/Write in a (binary) file. For example i need to read a specific block of bytes with an offset (if exists – not out of bound) as well as write a given block of bytes to a certain address and select if the current block will override the existing data etc…

Unfortunately, some of those functionalities do not exist in the NetFramework but by combining the available API we are able to archive them. So, below you will find a simple static class which had only to methods Read and Write.

 

Author

Write A Comment