Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- replaced={}
- replcdby={}
- stringthing="ehllo there my claer freinds."
- r=fs.open(".revolutOS/programs/adveditor/words","r")
- sLine=r.readLine()
- while sLine do
- e={string.find(sLine,":")}
- table.insert(replaced,string.sub(sLine,1,e[1]-1))
- table.insert(replcdby,string.sub(sLine,e[1]+1,string.len(sLine)))
- sLine=r.readLine()
- end
- r.close()
- for p,m in pairs(replaced) do
- while stringthing:gsub(m,replcdby[p]) do
- print("FOUND")
- end
- end
- print(stringthing)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement