Hi mates
well i have a problem
i used fstream in console mode in a class function and worked fine
the txt file was created and tha data were written normally
when i copied this class in the cpp file in vcl enviromen and made some changes and gave the execution of the function to a Tbutton nothing happend
so i am now made a simple test to see if the fstream works the way i am using it in vcl
void __fastcall TForm1::Button1Click(TObject *Sender)
{
fstream fm;
char s='m';
fm.open("mike32.txt",fstream::in | fstream::out);
fm.put(s);
fm.close();
}
i tried the puts() function the "<<" operator, tried to write a string into the file but nothing happend...not even the txt file was created....i have included the fstream.h.
i have also noticed tht the << operator does not work with integers when working with ifstream.....
any help would be valuable
mike