objective c - How to read from a csv file saved offline in iOS app . -


i have dragged , dropped .csv file in ios app want read . know method read file don't know how figure out path of .

so, how can figure out path ?

use pathforresource:

nsstring *filepath = [[nsbundle mainbundle] pathforresource:@"filename" oftype:@"fileextension"]; 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -