Traitement-signal-plantes/C-Script/fileGestion.c
2022-05-31 17:42:26 +02:00

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);
}
}