Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9588
Posted: 05:58pm 24 Dec 2016
Copy link to clipboard
Print this post
Hi all.
"Merry Christmas and all that bollocks." - Bottom (TV series)
Are you not allowed to specify the path in filename strings?
Example:
If I change the directory FIRST, then it works fine, but I thought you could specify the path in the string?
Looks like I might be perhaps thinking of something else, but I was sure you could do it like this.......Smoke makes things work. When the smoke gets out, it stops!
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935
Posted: 08:00pm 24 Dec 2016
Copy link to clipboard
Print this post
Merry Christmas Grogs I found the info below in the Addendum.
OPEN fname$ FOR mode AS [#]fnbr
Opens a file for reading or writing. ‘fname’ is the filename (8 chars max) with an optional extension (3 chars max) separated by a dot (.). The default directory must be selected first using CHDIR (ie, a path is not accepted). ‘mode’ is INPUT, OUTPUT, APPEND or RANDOM. INPUT will open the file for reading and throw an error if the file does not exist. OUTPUT will open the file for writing and will automatically overwrite
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9588
Posted: 09:09pm 24 Dec 2016
Copy link to clipboard
Print this post
NICE FIND!!!!
I'm not sure how I missed that in the manual..... Smoke makes things work. When the smoke gets out, it stops!
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935
Posted: 09:46pm 24 Dec 2016
Copy link to clipboard
Print this post
It wasn't easy to find. I wonder why it's in the Addendum.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9588
Posted: 10:06pm 24 Dec 2016
Copy link to clipboard
Print this post
Probably cos this only relates to the MM+, as the standard 170 MM2 does not have native SD card support.
Why am I writing code on Christmas Day anyway?! (rhetorical!) Smoke makes things work. When the smoke gets out, it stops!