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

Help with the fs.read()

Started by rhyleymaster, 08 December 2012 - 03:18 PM
rhyleymaster #1
Posted 08 December 2012 - 04:18 PM
Hi, I'm currently making a VI (Virtual Intelligence) program in CC.
I need some help though with the FS lines.

First off, How would i get it to open a file, then read the lines?
This is for the list of commands so i can make a file so people can add their own commands.

Second, in the VI i have a program that allows you to create commands, but i cannot get the fs.open() to work.

If you can help me, thanks.
Luanub #2
Posted 08 December 2012 - 07:54 PM
Try reading some of the tutorials here on the forums. Here are a couple links. If you have problems beyond that with your code post it along with the error/issues and we'll see what we can do to help.

[Snippet] Using fs.open, reading & writing from a file.

Basic file IO - Learn how to save data!

I'm sure there are more if you dig a little deeper
rhyleymaster #3
Posted 08 December 2012 - 08:07 PM
Try reading some of the tutorials here on the forums. Here are a couple links. If you have problems beyond that with your code post it along with the error/issues and we'll see what we can do to help.

[Snippet] Using fs.open, reading & writing from a file.

Basic file IO - Learn how to save data!

I'm sure there are more if you dig a little deeper
Thanks!
I got it working now.