home *** CD-ROM | disk | FTP | other *** search
- /*
- * MCDPIndex - A small, stupid but somewhat useful (?) tool.
- *
- * © 1995 by Michael Bauer (michael.bauer@zdv.uni-tuebingen.de
- *
- * Sorry, this sourcecode is really small and stupid. But I wanted to
- * take a look at all the index files included in some CDPlayer GUIs
- * like e.g MCDP, BGUIPlayer, CeeD, ...
- *
- * Usage: spat MCDPIndex songdir:id#? [ > <CDIndex> ]
- *
- * Disclaimer: This stuff is Freeware
- */
-
- #include <stdio.h>
-
- void main(int argc, char **argv) {
-
- FILE *in;
- char buf[256];
-
- if (argc != 2) {
- printf("Usage: cdindex <filename>\n");
- exit(0);
- }
-
- in = fopen(argv[1],"r");
- if (!in) {
- printf("Error: Can't open file.\n");
- exit(0);
- }
-
- printf("%s", fgets(buf,255,in));
- printf("%s\n", fgets(buf,255,in));
-
- fclose(in);
- }
-
-