Jump to content




How would one edit a file?


  • You cannot reply to this topic
8 replies to this topic

#1 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 25 March 2014 - 08:32 PM

The title pretty much explains it. How would one edit a file? I know how to open one, just not edit it. (Yes I looked on the Wiki.)

Edited by Agoldfish, 25 March 2014 - 08:32 PM.


#2 CometWolf

  • Members
  • 1,283 posts

Posted 25 March 2014 - 08:56 PM

I don't... what? How did you even make a program?

#3 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 25 March 2014 - 08:58 PM

View PostCometWolf, on 25 March 2014 - 08:56 PM, said:

I don't... what? How did you even make a program?
Well that was nice, reeeeeeeal encouraging there Comet. I guess I should have explained more. I mean edit a file from a program.

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 25 March 2014 - 08:59 PM

Either type "edit <programname>" in the CraftOS prompt, or you can look in your Minecraft folder for the computercraft files which you can edit. The programs are in your save folder.

#5 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 25 March 2014 - 09:02 PM

View PostCranium, on 25 March 2014 - 08:59 PM, said:

Either type "edit <programname>" in the CraftOS prompt, or you can look in your Minecraft folder for the computercraft files which you can edit. The programs are in your save folder.
Look at the post above yours, I explained it more there.

#6 CometWolf

  • Members
  • 1,283 posts

Posted 25 March 2014 - 09:05 PM

http://computercraft...ki/Fs_%28API%29

Quote

The FS API allows you to manipulate files and the filesystem.
You sure you looked?

tbh, i thought you would know this :P

#7 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 25 March 2014 - 09:05 PM

Well, not really. You didn't.
But the only other way you may be talking about is by using the fs API.
Take a look at the wiki, and tell us if you need help. Try to be as specific as possible, so you can get the proper help.

#8 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 25 March 2014 - 09:06 PM

View PostCometWolf, on 25 March 2014 - 09:05 PM, said:

http://computercraft...ki/Fs_%28API%29

Quote

The FS API allows you to manipulate files and the filesystem.
You sure you looked?

tbh, i thought you would know this :P
Well, I thought there was something like fs.write(), but maybe I was mistaken. Death already helped me in IRC as I'm posting this.

#9 CometWolf

  • Members
  • 1,283 posts

Posted 25 March 2014 - 09:08 PM

Indirectly there is yes, in the table returned by fs.open.
http://computercraft.info/wiki/Fs.open





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users