mercredi 8 février 2017

C++ and Python analogs for Pascal's typed binary files

Vote count: 0

There is a convenient thing in Pascal which is typed binary files.

Description from Free Pascal wiki

The type file of <type>, where <type> is any simple type (no references/pointers) or record type, is a binary file representing a sequence of values. For example, you can have files that are a sequence of integers, floating-point values, or records (as long as all record fields are also simple types).

I wonder if I can use something like this with Python data types, C++ classes or just C-like plain structs, i.e. with something more complex than primitive number types.

asked 1 min ago

Let's block ads! (Why?)



C++ and Python analogs for Pascal's typed binary files

Aucun commentaire:

Enregistrer un commentaire