**hodhod**
Hvordan kan man skrive et program der læser en fil fra diskette ?
C/C++ is the game, cool laungage is the name, efficiency is to blame.
du kan bruge
FILE *fp;
int size;
unsigned char *buffer;
fp = fopen("c:\\txt\\test1.txt", "rb");
if(!fp){
printf("File not found\\n");
exit(1);
}
fseek(fp,0,SEEK_END;
size = ftell(fp);
fseek(fp,0,SEEK_SET);
if ((buffer=malloc(size))==NULL){
printf("Memory allocation error\\n");
exit(2);
}
fread(buffer, sizeof(unsigned char), size, fp);
eller noget i den stil..
MVH
Daniel