
26.07.2008, 13:56
|
|
Members of Antichat - Level 5
Регистрация: 05.04.2006
Сообщений: 1,066
Провел на форуме: 3493315
Репутация:
1228
|
|
мож так
Код:
#include<windows.h>
#include <stdio.h>
#include<IO.h>
int main()
{
char path[1024];
ExpandEnvironmentStrings("%APPDATA%", path, 900);
strcat(path, "\\opera\\opera\\profile\\wand.dat");
FILE *f = fopen(path, "rb");
if(!f)
return printf("File \"%s\" not found\n", path);
int fl = filelength(fileno(f));
char *cont = new char[fl+1];
fread(cont, fl, 1, f);
cont[fl] = 0;
printf("%s\n", cont);
fclose(f);
return 1;
}
Последний раз редактировалось nc.STRIEM; 26.07.2008 в 14:04..
|
|
|