files are read as streams, as outputs you can see on std::cout.
what you need to do is to use fstream. for example, if you will only read the file you should open it with an ifstream
ifstream input;
input.open(stri ng path);
when you finish reading you should close the file.
There are good sites for this. like cpp reference, just google it
files are read as streams, as outputs you can see on std::cout.
what you need to do is to use fstream. for example, if you will only read the file you should open it with an ifstream
ifstream input;
input.open(stri ng path);
when you finish reading you should close the file.
There are good sites for this. like cpp reference, just google it
i have a transport stream file & i want to open it & analyze it ,
but i want to make a program that the user is the one who specifies the file location on the computer
not
*f =fopen(C:\\proj ect\\.......... ......)
i wanna
printf("Enter the location of the file");
then after that what should i do ?
Comment