kimer Posted May 8, 2014 Report Share Posted May 8, 2014 quiero hacer lo siguiente, por ejemplo tengo en la raiz un documento de texto llamado noquieroserborrado.txt quiero que al iniciar el juego, una vez este iniciado, si intentas borrar ese archivo, aunque este vacio, que no te deje borrarlo, ni tampoco modificarlo Link to comment Share on other sites More sharing options...
SeMa™ Posted May 8, 2014 Report Share Posted May 8, 2014 cuando abras el cliente, abre ese archivo y no le hagas close y creo que funcionará no lo he probado. Ej: file = open("xxxx.txt")file.read() y no le hagas el file.close() y ponlo en un thread aparte que se ejecute cada segundo, esto no lageará al usuario. Ryen and kimer 2 Link to comment Share on other sites More sharing options...
kimer Posted May 8, 2014 Author Report Share Posted May 8, 2014 buena sema, muchas gracias Link to comment Share on other sites More sharing options...
Recommended Posts