All pastes #709624 Raw Edit

Someone

public text v1 · immutable
#709624 ·published 2007-09-24 20:37 UTC
rendered paste body
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int Leet(char * Buffer, int Length);

int main()
{
    char * Buffer;
    int Length = 23;
    char FileName[100];
    
    cout << "What File should be opened: ";
    cin >> FileName;
    
    
    ofstream File1;
    ifstream File;
    File1.open (FileName);
    File.open (FileName, ios::binary);
    
    
    //get length
    File.seekg (0, ios::end);
    Length=File.tellg();
    File.seekg (0, ios::beg);
    
    Length = 5000;
    
    cout << Length << endl;
   
   char * FileIn;
   int x = 0; 
while(x < Length)
        {
                      x++;
                        File.read(FileIn, Length);
                        if (strstr(FileIn, "a") == 0)
                        {
                                           cout << "cant find a..\n";
                                           }
                                           else
                                           {
                                               cout << "found a...\n";
                      }
        }
                     



int xd;
cin >> xd;
return 0;
}