+# -*- coding: utf-8 -*-
# CONFIGURATION MANAGEMENT OF EDF VERSION
# ======================================================================
# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
retourne 1 si OK 0 sinon
"""
try :
- if type(text) == types.StringType:
- f=open(file,'w')
- else:
- # Probablement Unicode
- f=codecs.open(file,'w','iso-8859-1')
+ f=open(file,'w')
f.write(text)
f.close()
return 1