C언어 - save && load 예제
파일 입출력 쓸 때 보자. 12345678910111213141516171819202122232425262728293031323334353637383940414243void load(FILE *fp) { char buffer[BUFFER_LENGTH]; char *name, *title, *path, *context; while (1) { if (read_line(fp, buffer, BUFFER_LENGTH) artist != NULL) fprintf(fp, "%s#", ptr_song->artist->name); else fprintf(fp, " #"); if(ptr_song->title != NULL) fprintf(fp, "%s#", ptr_song->title); else fprintf(fp, ..