#include<stdio.h>
#include <file.h>
main(int argc, char *argv[])
{
FILE *fp;
char s[100];
int i;
//char exit
if((fp=fopen("Allah ya isa.mp3","rb"))==NULL) //Open file and read on binary mode
{
printf("Could not open the file\n");
// exit(1);
}
fclose(fp);
}
#include<stdio.h>``
main(int argc, char *argv[])
{
FILE *fp;
char s[100];
int i;
//char exit
if((fp=fopen("Allah ya isa.mp3","rb"))==NULL) //Open file and read on binary mode
{
printf("Could not open the file\n");
// exit(1);
}
fclose(fp);
}
Mohammed_9
0
Newbie Poster
Recommended Answers
Jump to PostYou are in fact opening the file correctly, but that won't do you much good unless you have a codec to decode the data with, I am afraid. We'd have to know what kind of system you are using (e.g., Windows, Linux, MacOS, FreeBSD, etc.) and what kind of libraries …
All 4 Replies
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Mohammed_9
commented:
thanks i'll try it.
+0
Suzie999
245
Coding Hobbyist
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.