[QUESTION] (5:203) create file


(5:203) create file {what kind?}.

I've tried using a direct filename in brackets like list.txt or indirect with variable %NAME.txt -- feels like I'm flying in the dark here. Neither of those worked... was this line created just for .db files, or SQLlite, or should it be capable of creating a .txt or .ini file?

Also, can it create in a ./subdirectoryOfChoice/ or does it have to create same folder (and which one is that)?

Thank you for the assistance.
Closed Aug 29, 2014 at 10:01 AM by Squizzle


Squizzle wrote Aug 29, 2014 at 9:59 AM

Wow I am a little late getting back to you sorry. The file IO library should work at creating simple files. My main focus has never been the core libraries (obviously if you look at them). Main focus is the planned lexer/parser revisit and bugs that hinder the function of SilverMonkey. I likely will remove the File IO library just due to the fact that the core libraries should deal with the language itself. Setting/removing variables, future array functions, math, strings, etc. When I made that File IO library it was mostly for my tests anyways. Thus the reason it is quickly and poorly written.

wrote Aug 29, 2014 at 10:01 AM

Gerolkae wrote Aug 29, 2014 at 3:39 PM

Wow Good thing I cloned and Editied that Library in Silver Monkey. My Version checks Documents\Silver Monkey for files first do to Vista + having permission issues in the Program folder... Generally the file IO library is for Simple text files like if you want to keep a specific log og things like say Recording Trade Requests to a file with a Trading Bot.