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

Getting files? [May be confusing]

Started by AndreWalia, 19 November 2012 - 08:56 AM
AndreWalia #1
Posted 19 November 2012 - 09:56 AM
Is there any function or anything like that to get files from your computer/laptop (Not computer in minecraft, computer that your playing minecraft on) for example fs.get("C:/Users/Andre/Desktop/Computercraft/BlackOS/install","install","startup") what this would do is look on the current computer your playing minecraft on and find that address in argument 1, then the second argument is "install" so it will copy that from your computer and insert that copy into the computer that the program was run on, and argument 3 is what the file will be saved as (if arg. 2 is install) so it will be saved as startup on your computer in minecraft. I hope I wasn't too confusing :)/>/>. (Of course this wouldn't work in multi-player, but i'm talking about single-player)
Orwell #2
Posted 19 November 2012 - 10:03 AM
No that's not possible, you can only access files and directories in '.minecraft/saves/worldname/computer' (or something). And of course the files in /lua/rom in the mod itself, but you can't alter those.
AndreWalia #3
Posted 19 November 2012 - 10:07 AM
No that's not possible, you can only access files and directories in '.minecraft/saves/worldname/computer' (or something). And of course the files in /lua/rom in the mod itself, but you can't alter those.
Dang it, I guess i'll just have to stick to moving the files manually. I guess I cant be lazy >_>
Orwell #4
Posted 19 November 2012 - 10:13 AM
You can edit in rom? I do that sometimes.
Doyle3694 #5
Posted 19 November 2012 - 11:15 AM
edit ROM? and fall upwards? ROM = Read Only Memory.
Orwell #6
Posted 19 November 2012 - 12:04 PM
edit ROM? and fall upwards? ROM = Read Only Memory.
:)/>/> Out of CC… Think before you try correcting someone.
Anyway, that way you don't have to copy the file to every new computer or turtle. You can access the file you're editing in the rom/programs directory from every computer in game.
Doyle3694 #7
Posted 19 November 2012 - 12:06 PM
well before you are rageing here on me, the way you put it sounded like you ment ingame.
Orwell #8
Posted 19 November 2012 - 12:20 PM
Well, ok, misunderstandings happen. But I thought it was more likely that I meant that, rather than that I don't know what rom is. :)/>/> It's not very on topic anyway. :D/>/>
Lyqyd #9
Posted 19 November 2012 - 06:28 PM
Let's try to minimize the bickering, people. Question answered; locked.