Cannot Use Same File For Input And Output