indent with 4-spaces
check the type of a opened file even if it has only one line