kornalius
01-09-2007, 03:56 PM
Here is how to load file content manually byte by byte if you want to:</p>
SDIM(buf$, TBYTE, 4096);
f$ = fopen("c:\\ge.1", "r");
x$ = 0;
repeat
r$=fread(&buf$ + x$, 1, 10, f$);
x$ = x$ + r$;
until (r$ < 10);
fclose(f$);
ShowMessage(buf$); </p>
This here reads 10 bytes at the time.</p>
SDIM(buf$, TBYTE, 4096);
f$ = fopen("c:\\ge.1", "r");
x$ = 0;
repeat
r$=fread(&buf$ + x$, 1, 10, f$);
x$ = x$ + r$;
until (r$ < 10);
fclose(f$);
ShowMessage(buf$); </p>
This here reads 10 bytes at the time.</p>