Read Text Files void main() { char pcMyLines[10000]; ReadLines("C:\\MyTestFile.txt", 10, 5, pcMyLines, 12345); } // This function reads n lines from a file // Returns the amount of bytes read int ReadLines(const char *pcFile, const int iStartLine, const int iTotLines, char *pcBuffer, const int iBufLen) { FILE *fSrc; int iLines = 0, j, iPos, iByteCount = 0; // Try to open the file if(fSrc = fopen(pcFile, "r")) { // Try to locate the starting line if(iPos = GetLinePos(fSrc, iStartLine)) { // Set the starting position if(!fseek(fSrc, iPos, SEEK_SET)) { // Read the lines for(iLines=0;iLines