-- Function chargement d'une variable sauvegarder
function charge(nom)
	file=fs.open(nom,"r")
	tmp=file.readAll()
	file.close()
	return tmp
end
-- Function de sauvegarde d'une variable
function memoW(nom,info)
	file=fs.open(nom,"w")
	file.write(info)
	file.close()
end
prochain=charge("prochain")
function actuEcran()
	tmp=http.get("http://localhost/houba/_comment/aimes.php")
	donne=tmp.readAll()
	ecran=peripheral.find("monitor")
	ecran.clear()
	ecran.setTextScale(3)
	ecran.setCursorPos(1,1)
	ecran.write("Total pouces")
	ecran.setCursorPos(1,2)
	ecran.write("   "..donne)
	ecran.setCursorPos(1,3)
	ecran.write("Defis a")
	ecran.setCursorPos(1,4)
	ecran.write("   "..prochain)
end
while true do
	term.clear()
	term.setCursorPos(1,1)
	term.write("ComputerCraft ordi "..os.computerID())
	term.setCursorPos(1,2)
	term.write("Mettre a jour le prochain ? (Actuel "..prochain..")")
	term.setCursorPos(1,3)
	prochain=read()
	memoW("prochain",prochain)
	actuEcran()
end