Can I read binary/text file on iPad?

Discussion in 'iOS Programming' started by mikezang, May 30, 2010.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I have a lot of (about 4000) binary stock data files on PC, now I want to make a iPad app to use those files, my questions as below:

    1. Can I copy/move those files to iPad from PC at first

    2. Can I read these files if I want to show a stock chart using data

    3. Can I download a zip file from Internet, unzip it and update data files above

    Thanks for your advise.
     
  2. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    Yes. Yes. And yes. If you write a custom app to do those 3 things.
     
  3. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Thanks for your answer.
    But on iPad, I don't know how to find the folder which I want to save my file, what can I do?
     
  4. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    Use the NSSearchPathForDirectoriesInDomains NSDocumentDirectory API call to help find your app's sandbox's Documents directory.
     
  5. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    Can you tell me where I can find a simple source, so that I can use it as a base to develop my app?

    I hope I can input something and browse it, then I can save it to file in binary format.
     

Share This Page