#include "main.h" void newFile(){ char buffer[256]; for(int i = 0; i < nRow; i++){ fgets(buffer , sizeof buffer , stdin); //printf("Line contaigns: %s" , buffer); } while(1){ if(!fgets(buffer,sizeof buffer , stdin)) break; printf("%s",buffer); } } int main(int argc , char** argv){ newFile(); }