Posted 18 October 2015 - 04:03 AM
It's pretty simple, all i need to do is make a program read a single given line from a file loaded by fs/http (multi-line string)
for example, i could do:
basically, it's designed for having pastebin codes in a pastebin file and reading all the codes to check if there's a difference and what it needs to update. yes, its for an OS.
so, how can i do this?
for example, i could do:
--#-------Code-------#--
function getLine(file,line)
fs.open(file,"r")
--#code
end
getLine("ExFile",4)
--#-------ExFile-------#--
hello
words and words
w0rds w1th @ch4r4ct3rs
last line 9i94539 with characters, "quotes" and spaces.
#needs to read all those
again, it needs to be able to get anything from that line. it's mainly so i can make an updater without multiple pastebin files, but just 1 file for all of my programs to update.basically, it's designed for having pastebin codes in a pastebin file and reading all the codes to check if there's a difference and what it needs to update. yes, its for an OS.
so, how can i do this?
Edited on 18 October 2015 - 02:04 AM