View Single Post
  #4  
Old May 17th, 2008, 09:00 AM
yogish yogish is offline
Registered User
 
Join Date: Mar 2007
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
yogish is on a distinguished road
const char * filepath = "/Volumes/TigerNew/abcd";
unsigned short *unifilepath;
asciitounicode(unifilepath,filepath);
NSString *nstr = [[NSString alloc] initWithBytes:unifilepath length:length encoding:NSUTF8StringEncoding];

fopen([nstr UTF8String],"r");

Will the above code work?
Reply With Quote