From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4c6dec5271e325c32ee144badfeae4c8@quintile.net> From: "Steve Simon" Date: Wed, 9 Oct 2013 16:53:14 +0100 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] Brdline and the last line Topicbox-Message-UUID: 84399e0e-ead8-11e9-9d60-3106f5b1d025 Hi all It has long been an irritation that Brdline returns failure (to match the end of line token) at end of file if the file does not end with a newline. This is correct but annoying. does anyone had a neat snippet of code which ensures we parse the last line correctly? For files on the filesystem I just fix them, but I am wrapping Brdline around a tcp connection so I am not in control of how people terminate their files... -Steve