fopen 과 fscanf로 읽어들이기
FILE* file = fopen(FileName,"r"); if(file==null) perror("error : file open error\n"); int a,b,c; for(;~fscanf(file,"%d %d %d\n",&a,&b,&c);) printf("... %d arrives at time %d ... %d seconds\n",b,a,c); fclose(file);
2011. 5. 31.
exec함수 군
1)int execl(const char *path, const char* arg0, ..., const char* argn, (char*) 0); 2)int execlp(const char* file, const char* arg0. ..., const char* argn, (char*) 0); 3)int execle(const char* path, const char* arg0, ..., const char* argn, char* const envp[]); 4)int execv(const char* path, char* const argv[]); 5)int execvp(const char* file, char* const argv[]); 6)int execve(const char *path, char..
2011. 4. 19.