Reading a dat file in C# [closed]
I've tried several ways to open an OTB file (otb files is like dat files), but I can't find out how.. Here's what I tried latest: http://pastebin.com/vXFN1pmV
Question is: How do you open and read a .dat file in C#? It probably has ASCII characters. Thanks
If you want to read the whole file into a string, you can use File.ReadAllText()
. If you want to read a binary file into a byte[]
, use File.ReadAllBytes()
.
OTB file seems (according to this link) Nokia Over The Air Bitmap Image.
Use apps described in that link to open it...
If you want to print out result, try this BitConverter.ToString(Bytes);
精彩评论