#include <fstream>using namespace std;int main(){ ofstream file("Text.txt", ios::out); float F[]={45.6f, 632.36f, 1141.1f, 414.f, 12490.1240f}; for(int g=0; g<sizeof(F)/sizeof(float); g++) file.write((char*)F, sizeof(F)); file.close(); return 0;}
for (int i = 0; i < sizeof(F)/sizeof(float); ++i) file << F[i] << endl;