[BangPypers] Need help for python coding

Kamalakar gs foxrun2005 at gmail.com
Tue Mar 26 19:11:01 CET 2013


Dear all,
I am newbie to coding.I want extract the data from text file which contains
text and tables.In a file i want to extract all "VON MISES" stress data
from a table.i wrote a code as below. but i dont know how to extract the
vonmises column data and dump it into text file.
So i am attaching the file which i am using for my project.

*
*
*import re*
*f_read = open('file name','r')*
*str='VON MISES'*
*for line in f_read:    *
*    m=re.search(str,line)*
*    if m:*
*     print m*
*
*
*
*
*Thanks regards Kamalakar*


More information about the BangPypers mailing list