Lua need to read the file, which I just wrote in same program
snippet in lua

Lua need to read the file, which I just wrote in same program

user1263

local file1=io.open("my_file.txt","r")
local file2=io.open("my_changed_file.txt","w")
for line in file1:lines() do
   file2:write(line.."changes\n")
end
file2:close()
local file3=io.open("my_changed_file.txt","r")
print(file3)
for line in file3:lines() do print(line) end