Re: Re: How to read a text file over a network
Re: Re: How to read a text file over a network
- Subject: Re: Re: How to read a text file over a network
- From: "Abhijeet Singh" <email@hidden>
- Date: Thu, 16 Dec 2010 18:03:04 +0530
Thanks ... It worked (/Volumes/{name of disk as it appears in the Finder} )RegardsAbhijeet Original message From:"Nick Zitzmann"< email@hidden >Date: 14 Dec 10 12:38:27Subject: Re: How to read a text file over a networkTo: Cc: email@hidden Dec 13, 2010, at 10:12 PM, Abhijeet Singh wrote:> I think the type of server is AFP. Because the file path displayed by Finder is: afp://PriyankaMac.afpovertcp.tcp.local/shared/file1.txt.> But if i put the same file path in my file2.txt my program fails to open file1.txt file.That's most likely because that's an afp: URL, and you need to use file: URLs with NSURL, etc. Once the disk is mounted, its path will start with /Volumes/{name of disk as it appears in the Finder} in the general case, but if a volume with the same name is mounted, then its path will most likely be slightly different, so you might need to use the DiskArbitration framework in order to get a good path...Nick ZitzmannGet Yourself a cool, short @in.com
Email ID now!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden