我将二进制数据存储在一个文件中。我正在这样做:
byte[] fileBytes = File.ReadAllBytes(@"c:\carlist.dat");
string ascii = Encoding.ASCII.GetString(fileBytes);
这给了我以下带有大量无效字符的结果。我究竟做错了什么?
?D{F ?x@??4????? NBR-OF-CARSNUMBER-OF-CARS!"#??? NBR-OF-CARS$%??1y0#123?G??#$ NBR-OF-CARS%45??1y# NUMBER-OF-CARSd?