Click here to Skip to main content
15,891,184 members
Articles / General Programming / String

A Few Missing Methods on BinaryReader

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
23 Apr 2021CPOL1 min read 7.7K   9  
BinaryReader needs a better way to read strings and types. Here's a quick and dirty fix
BinaryReader often can't read strings the way they're stored in files not created with BinaryWriter, and can't easily read types an entire struct/class at a time. These quick extension methods remedy that.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions