#include<fstream> #include<iostream> using std::fstream; using std::ifstream; using std::cout; using std::cin; void main() { char c; int i=0; ifstream f1("one.mp3"); if(f1!=0) { while(f1>>c) { i++; } f1.close(); cout<<"FILE LENGTH "<<i; } else cout<<"File Not Found"; cin>>c; }
Dinesh Balu wrote:ifstream f1("one.mp3");
ifstream f1("one.mp3", std::ios::in | std::ios:binary);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)