P
phoenix
How can i read a numbers from file.. I created this file like this:
int dane, i;
std:fstream plik_z;
plik_z.open(nazwa, std::ios:ut | std::ios::trunc | std::ios::binary);
for (i = 0; i < 15; i++) plik_z << dane;
plik_z.close();
Is it any way to read from this file all numbers ?.. If so - how can i do
it.
If it's impossible - how should i create this file to be able to read a
numbers from this file?
I couldn't find any formatted input / output functions in ifstream /
ofstream.
phoenix.
int dane, i;
std:fstream plik_z;
plik_z.open(nazwa, std::ios:ut | std::ios::trunc | std::ios::binary);
for (i = 0; i < 15; i++) plik_z << dane;
plik_z.close();
Is it any way to read from this file all numbers ?.. If so - how can i do
it.
If it's impossible - how should i create this file to be able to read a
numbers from this file?
I couldn't find any formatted input / output functions in ifstream /
ofstream.
phoenix.