I want to put a program in a string. How would I do that. The programs 40 lines long.
[Question]How do you have a long code in an a string
Started by whatsfast, Nov 26 2012 05:29 AM
4 replies to this topic
#1
Posted 26 November 2012 - 05:29 AM
#2
Posted 26 November 2012 - 06:43 AM
You can use the fs API to read files.
local programname = 'your_program_name' local content local file = fs.open(programname) if file then content = fs.readAll() file.close() endIn this example, the program is stored in the variable content.
#3
Posted 26 November 2012 - 07:26 AM
The program will be a client api. Can the other person on a server access my files. Anyway is it possible to put multiple lines in a string. I would like to have a program server maybe.
#4
Posted 26 November 2012 - 07:30 AM
I figured out the multi line integar but my other question still remains. Can other people save or edit files on my computer or only on theirs?
#5
Posted 26 November 2012 - 07:34 AM
whatsfast, on 26 November 2012 - 07:30 AM, said:
I figured out the multi line integar but my other question still remains. Can other people save or edit files on my computer or only on theirs?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











