Thread: Exe
View Single Post
  #1  
Old 05-19-2008, 06:51 AM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
Exe

Hi,
The simple code to save txt file is below. It works in Vizard, but if I publish it as EXE, it does not save the file although shows ‘Saved!’ message. I use 3.00.1903 Vizard version. All depending files were added. Console window does not show errors.

Thank you,
Andrey
=================================================
import viz

fileName = viz.input('Enter saveFile name','')
output_file = open(fileName+'.txt','a')
output_file.write('record')
output_file.write('\n')
viz.message('Saved!')
output_file.close()
Reply With Quote