Now readable from .txt file as well will write correctly