new line = 0, text[TEXTSIZE + 1], textlength while ((line = read_file(file, line, text, TEXTSIZE, textlength))) { // parse text here }