Saving process info to text file