Hi, whats wrong with this program?
Code:
#include <iostream.h>
#include <fstream.h>
#include <cstdio>
using namespace std;
int main()
{
    char input[30];
    cin>>input;
    if(input==1)
    {
        ofstream a_file("test.dll");
        cin>>input;
        a_file<<input;
        a_file.close();
    }
    else if(input==2)
    {
        ifstream b_file("test.dll");
        b_file>>input;
        cout<<input;
        b_file.close();
    }
    getchar();
    getchar();
    return 0;
}
Thanks for answer