This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
justync7's profile picture

fs+rednet+shell = ccSVN

Started by justync7, 24 July 2012 - 04:35 AM
justync7 #1
Posted 24 July 2012 - 06:35 AM
So, Im Trying To Make A SVN Type Thing For ComputerCraft But I Cant Seem To Find Out How To Open The Source Of A File… Any Help?
Lyqyd #2
Posted 24 July 2012 - 06:46 AM
A few pointers:

You don't need to capitalize every word you write; just the first word of each sentence will suffice.

The program library is for completed programs.

io.open(filepath).

Check out the io API on the computercraft wiki.
lieudusty #3
Posted 24 July 2012 - 06:50 AM
What do you mean by open the source of the file? Do you mean receive the file over rednet?
justync7 #4
Posted 24 July 2012 - 06:56 AM
I know programs is from completed versions its just a placeholder.
And I think io.open might work ill try it.
Noodle #5
Posted 24 July 2012 - 09:20 AM
fs.open() is a bit easier..
As for the SVN part where to goes to the server (online) use the http api.. GL + HF learning that fully.
justync7 #6
Posted 24 July 2012 - 06:33 PM
This isnt a actual SVN its a InGame SVN :/
justync7 #7
Posted 24 July 2012 - 07:38 PM
Yes!! I got it working and the thread will be unlocked and it will be released soon!
Noodle #8
Posted 24 July 2012 - 08:13 PM
Saw the post, code looks promising.