Hello
I'm looking for a way to read into an ini file which is online (e.g. on my ftp)
I would like it can be updated in real-time, so if possible without download the ini file before.
Someone has ideas about this ?
Printable View
Hello
I'm looking for a way to read into an ini file which is online (e.g. on my ftp)
I would like it can be updated in real-time, so if possible without download the ini file before.
Someone has ideas about this ?
What are you planning to do with it? The GET object can download the contents of a file, and you could then save it to the hard drive and read it through the INI object.
If you need the game to read and write online, a database would be more appropriate.
it's for a software.
it won't need to write, only read, updated text.
I tried
But when I try to read something, the build crashes.Code:Start of Frame.
> Get URL "http://.....file.ini"
On get complete
> Set ini file to Received("Get object")
If I am not mistaken, that would retrieve the text content of the inifile, not the file itself. You could do as DavidN says, and put the content into an edit object and save it as a textfile, and then open it via the INI object. But this seems a little redundant, as you can read the data directly from the Get object. The normal thing would be to format the data as a string with delimiters on the server, and then use the String Parser 2 object to split the data on the client. But of course, if it is an INI file you want, you could go for the first method.
I'll check for this and 'll get back here after.
Thanks