Well, I am trying to make File transfer system in Computercraft, I do not need any more knowledge of Rednet, but I am stuck in this thing:
Can I write program using string? Example:
If someone sends string: while true do
*Write the first line, while true do*
Then: print("HELLO WORLD!")
*Write the second line*
And: end
*Write the third line*
...Or...
If someone sends the whole program thing in one string: while true do print("HELLO WORLD!") end
So, is that possible?
Making program in program
Started by XMan3, Oct 20 2014 06:38 PM
5 replies to this topic
#1
Posted 20 October 2014 - 06:38 PM
#3
Posted 20 October 2014 - 07:25 PM
The second way is definitely easier. Read the file on one end, send the multiline string, receive it on the other end and write it to the file.
#4
Posted 20 October 2014 - 07:50 PM
You could actually do this pretty easily by sending the program as a table then looping through the table. I know that this is how the edit program handles file saving.
#6
Posted 20 October 2014 - 07:57 PM
Right now my computers doesn't want to let me quote... but I was just offering another way to do it.
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users












