Untitled

 avatar
unknown
c_cpp
9 months ago
295 B
5
Indexable
#include <fstream>
#include <iostream>

int main()
{
    std::fstream plik( "mars.tmp", std::ios::in );

    char bufor[ 1024 ];
    plik.read( bufor, 1024 );

    std::cout << "Wczytano " << plik.gcount() << " bajtow do bufora" << std::endl;

    plik.close();

    return 0;
}
Editor is loading...
Leave a Comment