Posted 19 May 2016 - 11:25 PM
                How do I make a code to remove a string of data from another file.
Main
settings
Response would be appricated.
Thanks,
Nolan
                
            Main
file = fs.open("settings","r")
setting1 = file.readLine(1)
file.close
print("Current setting for background is "..setting1.." would you like to change it?")
result = doButtonsYN()
if result == true then
      term.clear()
      term.setCursorPos(1,1)
      print("Enter new color for setting")
      newColor = read()
      --Remove Line one of the settings file
      file = fs.open("settings","a")
      file.write(newColor)
      print("Fixing Color")
else
 return
end
settings
colors.red
colors.blue
colors.yellow
--/\ Colors Settings 
-- |
Response would be appricated.
Thanks,
Nolan