Adding number output to memory file