Hi,
I have done a test, I have edited with the WordPad in Windows on my Local Webserver a file banana.h which contains a list of float arrays in order to extract one array and create a text file named ObjVerts.txt
I have done a lot of search in the Web in order to find a small piece of code that can read the text file and convert it to a float array GLfloat, but I did not find any.
I have found a lot of piece of code that read the file and make a NSData but many of the code seem to not work.
It seem that the last statement return nothing!
Please I would appreciate if you can guide me a bit more.
Here the piece of code I did try :
NSURL *myurl = [NSURL URLWithString:@"http://localhost/ObjVerts.txt"];
//NSString *mystring = [NSString stringWithContentsOfURL:myurl];
NSData *mydata = [NSData dataWithContentsOfURL:myurl];
thanks Regis