FileStreams under iOS

Monkey Targets Forums/iOS/FileStreams under iOS

maverick69(Posted 2013) [#1]
I'm having some troubling using FileStream under iOS (it works fine under GLFW).

The following code will produce an error although the file exists (i've added *.ini to the config.monkey file filter and trans copied it successful into the ios-build folder):

        stream = FileStream.Open("monkey://data/test.ini, "r")
        If Not stream 
            Error "File not found: " + url
            Return Null
        End


After some debugging I've found out that it works if I alter Marks function

FILE *fopenFile( String path,String mode ){


and add the following call before fopen is called

NSString *rpath=pathForResource( path );


it works fine.

Is this a bug, or do I use FileStream wrong?