Added getLine() template fcn