// Inform the user Writeln('Data written to example.bin');
// Display the read data Writeln('Data read from example.bin:'); for i := 0 to 9 do Write(DataRead[i], ' '); code4bin delphi 2021
// Erase the file (optional) Erase(BinaryFile); // Inform the user Writeln('Data written to example
// Close the file CloseFile(BinaryFile); // Erase the file (optional) Erase(BinaryFile)
// Open the file for reading Reset(BinaryFile);