Function to dump tx file
Typo fixed