Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 16, 2009, 08:46 PM   #1
Hot Sauce79
macrumors newbie
 
Join Date: Jul 2008
Pulling File From Online with the iPhone

I would like to download a file named 'data.txt' from a designated server that will be determined at a later date. All I want to know is if this is possible. Also if it is possible then what documentation would someone suggest that I look at in order to figure out how to go about doing this.

If it is not possible then I would like some suggestions on how I would pull information off of a webpage without having the user navigate to the webpage. (the iphone goes to the webpage and pulls the information out of the HTML version of the page without the user actually seeing anything)

I have done this in Java and I would like to know if i can do this with the iPhone.

Any help would be greatly appreciated!
Hot Sauce79 is offline   0 Reply With Quote
Old Apr 16, 2009, 08:56 PM   #2
detz
macrumors 65816
 
Join Date: Jun 2007
NSString *content = [[NSString alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://webpage/data.txt"]];

Something like that...
detz is offline   0 Reply With Quote
Old Apr 16, 2009, 11:32 PM   #3
Hot Sauce79
Thread Starter
macrumors newbie
 
Join Date: Jul 2008
Thanks that will be extremely helpful if I need to use it =)

Last edited by Hot Sauce79; Apr 16, 2009 at 11:34 PM. Reason: changing tense
Hot Sauce79 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Best Online File Storage? Huntn Mac Applications and Mac App Store 20 Mar 25, 2014 11:04 PM
Printing Online PDF file iyahya Community Discussion 5 Jan 16, 2014 01:12 AM
Not able to unlock iPhone 4 after pulling battery out LorenzMeir iPhone Tips, Help and Troubleshooting 0 May 3, 2013 09:43 AM
IPhone heart strings pulling... MrMister111 iPhone and iPod touch Apps 3 Oct 29, 2012 02:39 PM

Forum Jump

All times are GMT -5. The time now is 02:19 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC