array von floats speichern
-
ja hab dann gleich mal noch eine frage:
wie kann ich einen array von floats in eine datei speichern und wieder auslesen?
-
Schau mal in die FAQ
-
also ein array von floats würd ich ungefähr so abspeichern:
ofstream dat; dat.open("file.txt", ios_base::out); for (i=0; i<10; ++i) dat<<array[i]<<endl; dat.close();