Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Where to save text files on macosx
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="schillermika" data-source="post: 1385272" data-attributes="member: 244094"><p>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?</p><p></p><p>thnx</p></blockquote><p></p>
[QUOTE="schillermika, post: 1385272, member: 244094"] 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]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Where to save text files on macosx
Top