#include <cstdio>
using namespace std;
int main(int argc, char** argv)
{
FILE* f = fopen("robinhood.txt", "w");
if(f != NULL)
{
fprintf(f, "Robin hood and his merry men");
fclose(f);
return 0;
}
else
{
printf("File %s cannot be opened for writing\n", "robinhood.txt");
return 1;
}
}