#include <iostream>
#include <fstream>

int 
main()
{
  fstream         f;
f.open("liczby.bin", ios: : in | ios: :binary);
f.seekg(0, ios: :end);
  unsigned        N = f.tellg() / sizeof(double);
f.seekg(0, ios: :beg);
  cout << "Plik zawiera " << N << " liczb:" << endl;
  for (unsigned i = 0; i < N; ++i)
  {
    double          x;
    f.read(&x, sizeof(double));
    cout << "Liczba Nr " << (i + 1) << ": " << x << endl;
  }
  f.close();
  return 0;
}

