WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC