split  input file in lines nad sublines