lua-users home
lua-l archive

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

On Nov 29, 2011, at 9:21 AM, steve donovan wrote:

> [1]

Nicely done.

The extensive Penlight treatise mentions  "File-style I/O on Strings". Which is nice.

Would anyone have the reverse? String-style methods on Files?


local aFile = 'test.txt', 'rb' )

if aFile:find( 'foo', 1, true ) do

In other words, string methods [2] working in terms of a file object? :)