readline function
use BufferedReader and split