You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
<html><head><title>Test</title><scripttype="text/tiscript">functiongetData(path){varconfig=Stream.openFile(path);if(config){// Load the contents of the file into a json object varjsonData=parseData(config);if(jsonData){stdout.printf("JSON data is : %v\n",jsonData);}else{stdout.println("No data");}config.close();}else{stdout.println("could not find file ",path);}}getData("config.json");getData(self.url("config.json"));getData("C:\\Users\\developer\\Desktop\\test_sciter_file\\config.json");getData("C:/Users/developer/Desktop/test_sciter_file/config.json");getData(".\\config.json");getData(self.url(".\\config.json"));getData(self.url("config.json"));getData(self.url("test_sciter_file\\config.json"));</script></head><body><button#t>TEST</button></body></html>
output is
INFO:TIS: could notfind file config.json
INFO:TIS: could notfind file file://C:/Users/developer/Desktop/test_sciter_file/config.json
INFO:TIS: could notfind file C:\Users\developer\Desktop\test_sciter_file\config.json
INFO:TIS: could notfind file C:/Users/developer/Desktop/test_sciter_file/config.json
INFO:TIS: could notfind file .\config.json
INFO:TIS: could notfind file file://C:/Users/developer/Desktop/test_sciter_file/config.json
INFO:TIS: could notfind file file://C:/Users/developer/Desktop/test_sciter_file/config.json
INFO:TIS: could notfind file file://C:/Users/developer/Desktop/test_sciter_file/test_sciter_file/config.json
T_T it seems so (almost waste me a whole day) . I think we should add those kinds of tip into tiscript api document.if you could tell me how to update that, i will be pleasured to do.
sciter dll version: 4.2.6.10 (32)
sciter binding : sciter-rs = "0.5.44"
windows version :win10 64
output is
file struct is
i am confuse what happen now,please give some advise
The text was updated successfully, but these errors were encountered: