lua-users home
lua-l archive

Re: print: subpress CR+LF?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Wolfgang Bujatti escribió:
Is it possible to subpress the CR+LF at the end of each print statement on
Windows?
print"Hello "
print"World"
print"\n"
Output:
Hello
World
Try io.write (or io.stdout:write) instead of print:
io.write"Hello "
io.write"World"
io.write"\n"
--dq

AltStyle によって変換されたページ (->オリジナル) /