local file = io.open(getWorkingDirectory() .. "/file.txt", "r")
local count = 0
local max_lines = 3
for line in file:lines() do
if count < max_lines then
print(line)
count = count + 1
else
break
end
end
file:close()[/
[/QUOTE]
будет работать если принт замену на imgui.TextWrapped?