read file & convert to line