reading bytes in a file in vb.net
问题 After getting the file name I create a new filestream and load all the bytes from the FileStream into a byte array, now I need to get certain bytes and store them in fields like the second 4 bytes are the time the file was created. When storing these in the variables should I store them as bytes or as string/integers/etc. Or have I done it completely wrong? EDIT:Should I be doing this way instead of a filestream? Dim data() as Byte = File.ReadAllBytes(path1) 回答1: Using File.ReadAllBytes is a