Store output into file