New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Where to save text files on macosx


Post Reply New Thread Subscribe

 
Thread Tools
schillermika

 
Member Since: Mar 20, 2012
Posts: 1
schillermika is on a distinguished road

schillermika is offline
I am doing natural language processing-related stuff and I have .txt files I need to parse. I just switched over from Windows 7 to mac and I'm still getting acquainted with the file structure. I'm working with Python. In Windows I would just save all my text files to the sitepackages folder and play around with them in IDLE from there. On my mac, I saved the text file under lib/python2.7 and tried doing a simple open('file.txt', 'r') in IDLE and it didn't recognize the file. My question is where should I save text files so that IDLE or .py modules can find them?

thnx
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,074
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Use the full path to the file - you shouldn't be saving anything in your site-packages folder. Put them somewhere in your user folder.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« FLTK and Xcode 4 | Undefined symbols for architecture x86_64: error on Xcode »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
G4 Powerbook OS 10.3.9 - not allowing me to save files yorkieneil OS X - Operating System 2 09-19-2011 06:01 AM
Looking for Simple Text Editor for Multiple Files ronsteenvoorden OS X - Apps and Games 5 08-12-2011 08:05 AM
save photos but delete startup disk files derbygirl Apple Desktops 1 07-08-2011 07:12 AM
Open download files on Snow Leopard. Not save. chourreau OS X - Operating System 4 04-05-2011 09:31 AM

All times are GMT -4. The time now is 04:13 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?