Thread: what to use

  1. #1
    Banned
    Join Date
    Oct 2004
    Posts
    250

    what to use

    i need something that can hold about 700k data is there anything that could hold that much ?
    here is my code so far
    Code:
    #include <iostream>
    #include <dir.h>
    #include <fstream>
    #include <cstring>
    using namespace std;
    int main()
    {
        char hold [256];
        if(mkdir("c:\\Documents and Settings\\wmorrish\\Desktop\\Far Cry\\FCTrainer") !=0);
        {
            cout<<"INSTALLATION Error !"<<endl;
        }
        ifstream open_file("c:\\Documents and Settings\\wmorrish\\Desktop\\TrainerInstall.exe", ios::in);
        while(!open_file.eof())
        {
        open_file >> hold;
        }
        ofstream new_file("c:\\Documents and Settings\\wmorrish\\Desktop\\Far Cry\\FCTrainer\\FCTrainer.exe", ios::app);
        new_file << hold <<endl;    
        cout<<"Installation Complete"<<endl;
        system("pause");
    }

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    This can hold 700K:
    Code:
    unsigned char *storage = new unsigned char[700000];

  3. #3
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227
    Code:
    c:\\Documents and Settings\\wmorrish\\Desktop\\Far Cry\\FCTrainer\\FCTrainer.exe
    ...............
    Keyboard Not Found! Press any key to continue. . .

Popular pages Recent additions subscribe to a feed