file = fs.open("log","r")
local fileData = {}
local line = file.readLine()
repeat
table.insert(fileData,line)
line = file.readLine()
until line == nil
file.close()
local recent = fileData[1], fileData[2], fileData[3], fileData[4], fileData[5]
print("Recent Activitys:"..recent)
what i would like it to to is to read the 5 latest lines from the file and print them like this:
Recent activitys:
line
by
line
by
line
currently it prints like this
Recent activitys:THE FIRST THING ON THE FILE
what should i change?











