Like so


#include <stdio.h>
#include <string.h>

int main ( ) {
FILE *fp = fopen( "input.txt", "r" );
char buff[BUFSIZ];
while ( fgets(buff,BUFSIZ,fp) != NULL ) {