Logged all data to .txt file