Last active
February 5, 2016 03:35
-
-
Save YeOldeDM/a6ce9a0053da1fd4f927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+# load from a file with several dicts | |
+static func loadJsonMult(path): | |
+ var curfile = File.new() | |
+ if ( !curfile.file_exists(path)): | |
+ logd(str("ERR: loadJson file doesn't exist ",path)) | |
+ return null | |
+ curfile.open(path,File.READ) | |
+ logd(str("MSG: loadJsonMult from ",path)) | |
+ var data = {} | |
+ while ( !curfile.eof_reached()) : | |
+ data.parse_json(curfile.get_line()) | |
+ return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment