_NAME_ readFromFile _PROTOTYPE_ int readFromFile(int fd, char *buffer, int bytesToRead); _SHORT-DESCRIPTION_ Read from a file _DESCRIPTION_ readFromFile is a low level routine used internally in the CRIS/SIS routines. Primarily it just adds a little error checking to the usual read calls. If the routine does not read the expected number of bytes into the buffer, it will exit. _SHORT-CODE-SAMPLE_ int bytesToRead = 1024; char buffer[1024]; int fileDescriptor; char *path = "/home/idunn/rgr/data/sis/1997.09/1997.09.24/sis.1997.09.24.hsk"; _ fileDescriptor = openOrCreateFileToReadWrite(path); readFromFile(fileDescriptor, buffer, bytesToRead); close(fileDescriptor); _INPUT_ * fd is the file descriptor for the already opened file. * buffer is the user allocated buffer to read into from the file. * bytesToRead is the number of bytes to read from file (cannot be larger than the buffer size.) _OUTPUT_ * buffer is written to and 1 is returned. * If readFromFile is unsuccessful, the program terminates.