Lines Matching defs:file
22 // read a file list -------------------------------------------------------- ***
35 /* check for multiple text file suffixes to see if this list name is a text file name */
52 * Read a file list.
53 * If the listname ends with ".txt", then read the list file
55 * If the listname ends with ".dat", then read the ICU .dat package file.
56 * Otherwise, read the file itself as a single-item list.
61 FILE *file;
65 fprintf(stderr, "missing list file\n");
77 // read the list file
82 file=fopen(listname, "r");
83 if(file==NULL) {
84 fprintf(stderr, "icupkg: unable to open list file \"%s\"\n", listname);
89 while(fgets(line, sizeof(line), file)) {
133 fclose(file);
138 // list the single file itself