Hi,
Before i started using RUBE, i was using my own editor that used to export physics data in to the text file.
Now i want to import text file data through script. I found that AngelScript has support of file class as an addon.
But i don't know how to use it. If i can read text file data, it will save lot of time.
Any Suggestions.
Reading contents of a file through script
-
- Posts: 2
- Joined: Mon Jul 15, 2013 8:57 am
Re: Reading contents of a file through script
The next update will add these script functions which you will probably find useful:
bool dirExists(string path)
bool fileExists(string path)
string readFile(string file)
bool writeFile(string file, string text)
It should be ready in the next few days.
bool dirExists(string path)
bool fileExists(string path)
string readFile(string file)
bool writeFile(string file, string text)
It should be ready in the next few days.
-
- Posts: 2
- Joined: Mon Jul 15, 2013 8:57 am
Re: Reading contents of a file through script
Hey... thanks
Looking forward to it
Looking forward to it
