save nodes as text file