inject text file dependency and write reversed file