Storing the network in a file