English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am using the Little C Compiler (LCC) installation (I have previous experience writing AWK scripts). I can't use the internet very much during working hours, so constant reference to MSDN is not an option.

2006-07-24 11:12:23 · 1 answers · asked by kittybriton 5 in Computers & Internet Programming & Design

I should have mentioned, this is for Win32, not Win16 (i.e. Windows 95 or previous)

2006-07-24 13:30:38 · update #1

1 answers

I have always used fopen(), fread(), fwrite(), fclose().

I am doing this from memory so it may not compile.

unsigned char RWString[500];
unsigned int Number;

File* FilePtr = fopen("FileName.xxx", w);
//the w = write but could be r = read, b= binary
Number = 10; //number of bytes you want to read
fread(FilePtr, RWString, Number);
fwrite(FilePtr, RWString, Number);
fclose(FilePtr);

2006-07-25 02:06:06 · answer #1 · answered by justme 7 · 0 0

fedest.com, questions and answers