#include "shared/view.h"
#include "shared/utility.h"
#include <stdio.h>
+#include <dali/integration-api/debug.h>
+#include <dali/devel-api/adaptor-framework/file-stream.h>
using namespace Dali;
using Dali::Toolkit::TextLabel;
{
std::string fullpath( path );
fullpath += filename;
- FILE* file = fopen( fullpath.c_str(), "rb" );
- if( ! file )
+
+ Dali::FileStream fileStream( fullpath, Dali::FileStream::READ | Dali::FileStream::BINARY );
+ FILE* file = fileStream.GetFile();
+ if( !file )
{
return false;
}
bool retValue = false;
- if( ! fseek( file, 0, SEEK_END ) )
+ if( !fseek( file, 0, SEEK_END ) )
{
long int size = ftell( file );
}
}
- fclose( file );
return retValue;
}