problem with type() when use txt file