--- /dev/null
+/* read mp3 info, hackbard */
+
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+
+#define MAX_READ 1024
+#define MAX_FILENAME 256
+
+int main (int argc,char **argv)
+{
+ int file_fd; /* desc fir file */
+ char buf[MAX_READ]; /* buffer for the actual info */
+ char filename[MAX_FILENAME];
+
+ strcpy(argv[1],filename);
+
+ if((file_fd=open(filename,O_RDONLY))<=0) {
+ puts("open failed");
+ return -23;
+ }
+
+ if((read(file_fd,&buf,MAX_READ))<=MAX_READ) {
+ puts("read failed");
+ return -23;
+ }
+
+ printf(" -> %s",buf);
+
+ puts("");
+ puts("done");
+
+ return 23;
+}
+
+
+