Sun Studio 12:C 用户指南

(7.9.2) Whether the last line of a text stream requires a terminating new-line character(文本流的最后一行是否需要终止换行符):

最后一行不需要以换行符结束。