![]() ![]() ![]() If you can show me the proper steps to read from the file using the Blockread or what ever is the best function for doing so in Delphi, would be appreciated. The BlockRead procedure is used to read RecordCount data records into Buffer from an untyped binary file given by the FileHandle. Note: ReadAllBytes raises an exception if the file cannot be opened or the path is invalid. The following table lists the parameters expected by this method. ReadAllBytes returns a new byte array containing the file data. ![]() Use ReadAllBytes to read the contents of a binary file. I'm Having trouble reading records from a binary file that was created in C.Ĭan someone confirm if I converted the record properly from C to Delphi and also if there is anything additional I need to do for the BlockRead function to read the records properly? I read somewhere that C and Delphi add bytes in slightly different ways when writting to binary. Reads the contents of the file into a byte array. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |