display the contents of a text file

Topics related to the new MainLobby Web Designer software for Android and iOS devices.
DevenLF
Member
Member
Posts: 94
Joined: Fri May 20, 2005 11:26 am
Contact:

display the contents of a text file

Postby DevenLF » Fri Oct 30, 2015 6:59 pm

Is it possible to have a scene text area (or whatever) display the contents of a simple txt file?

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: display the contents of a text file

Postby CinemarDave » Fri Oct 30, 2015 8:46 pm

Yes, you would have to use a MLScript to open the text file, read its contents into a variable and then save that variable's value as a server variable.

Then on the scene you would create a new text scroller and set its value to the server variable the script created.


Return to “MainLobby Web Designer (V5)”

Who is online

Users browsing this forum: No registered users and 1 guest