consistent way of splitting files into lines