read and write file peers.dat