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

fs.open possibilities?

Started by AlwaysBubblin, 22 June 2013 - 07:06 PM
AlwaysBubblin #1
Posted 22 June 2013 - 09:06 PM
Is it possible to open a file (text file) from a different location, for example, can I have two computers, opening and editing the same file? (Not at the same time).
Lyqyd #2
Posted 23 June 2013 - 08:49 PM
Split into new topic.

Nope.
Bomb Bloke #3
Posted 24 June 2013 - 02:51 AM
Well, it is, but the process isn't exactly simple - you'd basically code up a rednet file server.

How complex it'd need to be, or even if it's necessary at all, depends on what your actual end goal is.
theoriginalbit #4
Posted 24 June 2013 - 06:26 AM
A symlink used to work as well. Not too sure if it still does, but it used to, as long as you had access to the computer files.
apemanzilla #5
Posted 24 June 2013 - 10:28 AM
The easiest way would be to attach two computers on either side of a disk drive, and edit the disk's files.
Lyqyd #6
Posted 24 June 2013 - 10:45 AM
Heh, I missed the "not" in the "at the same time" bit. Yes, this is possible. Disk with a file on it is easiest if they're adjacent, otherwise rednet is the way to go.