Read size bytes from file represented by FILE pointer *fp, into buffer *buf. If the read is unsuccessful, an error is displayed followed by exiting IDA.
Examples:
#include <diskio.hpp>
char buf[MAXSTR];
// Open the text file
FILE *fp = openRT("c:\\temp\\txtfile.txt");
// Read MAXSTR bytes from the start of the file.
eread(fp, buf, MAXSTR-1);
eclose(fp);