Dear People,

Does somebody know how I can save my variable into
a file in this case the variable is "buffer" with a recordnumber
so I can get the next time the information with the recordnumber
please make it posseble in this code:

code:

// C++

#include <iostream.h>
#include <string.h>
#include <stdlib.h>

void main()
{
char buffer[10];
char b;

cout << "\n\nType a word: " << endl;
cout << "\n:";
cin.getline(buffer, 10);

if ( strcmp ( buffer, "hallo" ) == 0 )
cout << "The typed word is the same as the embeded word in this program.\n\n";
else
cout << "The typed word is not the same as the embeded word in this program.\n\n";

cout << "\nTyped word: " << buffer << endl;
cout << "\n\nEnter to Exit.\n";

cin.get(b);
}


thank you verry much


greetz cyberbjorn