All pastes #2055765 Raw Edit

Something

public text v1 · immutable
#2055765 ·published 2011-05-09 14:21 UTC
rendered paste body
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <dos.h>
using namespace std;
char* osn;

int sizefile()
{
int fsize;
FILE *o = fopen( "input.txt", "rb" );
fsize = filelength(fileno(o));
fclose(o);
//cout<<"\n\n"<<fsize<<"\n";
return fsize;
}

int main()
{

int i,raz=sizefile();

osn=(char*)malloc(raz*sizeof(char));

cout<<"\n\n"<<sizefile()<<"\n";
FILE *o = fopen( "input.txt", "r" );
while(!feof(o)) {osn[i]=fgetc(o); i++;}
fclose(o);

for(i=0;i<raz;i++) cout<<osn[i];

}