22 lines
485 B
C
22 lines
485 B
C
#include "fileGestion.h"
|
|
|
|
void newFile(int nRow){
|
|
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);
|
|
}
|
|
}
|
|
|
|
void copyFile(int nRow){
|
|
char buffer[256];
|
|
while(1){
|
|
if(!fgets(buffer , sizeof buffer , stdin)) break;
|
|
fprintf(stdout, "%s" , buffer);
|
|
}
|
|
}
|