I'm trying to make a custom printing program for ComputerCraft, that can make more copies by one command and I have a problem. Every time a put a file into it, it doesn't break lines and puts ?
where the line break is (\n
). How do I do it correctly?
Problem should be somewhere here:
for i=1,copyNumber do
printer.newPage();
printer.setPageTitle(pageLabel);
local h = fs.open(filePath, "r");
local text = h.readAll();
print("Tisknu:");
write(text.."\n");
printer.write(text);
h.close();
printer.endPage();
end