# file.py def leggifile (nf): f=open(nf,'r'); a=f.read(); f.close(); return a def scrivifile (nf,a): f=open(nf,'w'); f.write(a); f.close()