Writing Numeric Data to a File
skchim0 at engr.uky.edu
Mon Jun 14 22:25:15 CEST 2004
I have written some data to a file with the following code. I have copied the OUTPUT hereunder.
xval_new = 0
time_structure = 0.005
OUTPUT (in file ansys_xdisp.dat):
However, I would like to write more efficient code and format the output properly so that it looks something like this:
Would someone please help me re-write this code properly to do the above and also point me to a reference wherein I could find all information about Formatting with Files.
I did browse through Python's website to get some info about manipulating files. It's not elaborate enough, though. I would need to do more complex file-processing tasks shortly.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list