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
creating a text file
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="McBie" data-source="post: 1543250" data-attributes="member: 54417"><p>You can specify a full path name in the open() instead of just the file name.</p><p>Alternatively, there are functions to set the current path to something " nearer " before you do the open() <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Don't forget to set the path back to what it was before the program terminates.</p><p>So the sequence can be get path(), set path(), open() etc.... and then set path() to what it was before.</p><p></p><p>Cheers ... McBie</p></blockquote><p></p>
[QUOTE="McBie, post: 1543250, member: 54417"] You can specify a full path name in the open() instead of just the file name. Alternatively, there are functions to set the current path to something " nearer " before you do the open() :-) Don't forget to set the path back to what it was before the program terminates. So the sequence can be get path(), set path(), open() etc.... and then set path() to what it was before. Cheers ... McBie [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
creating a text file
Top