Reading Binary Files From Asset folder using "fstream"
I am making a simple application using . In that app, i am using C/C++ static library. I compiled this library using Qt-Creator. This static library has one function
Code:
loadFile(std:string fileName)
This function load the files using .
Code:
fstream data_file(file_name.c_str(), ios::in | ios::binary);
I read about the asset folder in the android and put my files there. I can check that this files exists by using . But how can i can load this files using the function available in my static library. From the Qt's MainWindow.cpp, how can tell LoadFile function that where is the file.
Re: Reading Binary Files From Asset folder using "fstream"
You are saying that if you pass the filename that worked with QFile to loadFile it doesn't work anymore?
Cheers,
_