Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Reading from a txt file

Zante Zapedzki
We need html on a prim!
Join date: 15 Feb 2007
Posts: 123
11-08-2007 12:40
This seems like a simple task, provided that lsl supports it that is.

How would I read from a txt file (uploaded) so that I can store its contents as a string?

Thanks in advance.
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
11-08-2007 15:42
Copy the contents of the textfile into a notecard and read it from there...

As you have to upload the file anyway, you might as well copy/paste it into a notecard.... (besides, can one actually upload a textfile? I highly doubt it... :)

HTH
Zante Zapedzki
We need html on a prim!
Join date: 15 Feb 2007
Posts: 123
11-08-2007 15:46
The text file is being generated by a php script. I'm trying to get the xytext script to display the contents of it.

I just found out about the llhttprequest, this should help. : ]
Kaklick Martin
Singer/Songwriter
Join date: 3 Oct 2005
Posts: 175
11-09-2007 10:56
From: Zante Zapedzki
The text file is being generated by a php script. I'm trying to get the xytext script to display the contents of it.

I just found out about the llhttprequest, this should help. : ]


Yup, if you want to get web accessible text into LSL, that's the way to do it.
_____________________