"Raf256" <sp**@raf256.invalid> wrote in message
news:e5**********@inews.gazeta.pl...
Hi,
any idea where one might find source code of operator >> that inputs
a character from iostream or fstream?
In example - online?
What are you looking for?
std::ifstream MyStream("MyFile.ext");
if ( MyStream.is_open() )
{
char SomeChar;
while ( MyStream >> SomeChar )
{
std::cout << "Char is: " << SomeChar << std::endl;
}
}
std::ofstream MyStream("MyFile.ext");
if ( MyStream.is_open() )
{
char SomeChar = "X";
MyStream << SomeChar;
}
Is that what you want?