Hi,

On Tue, Mar 26, 2013 at 11:41 PM, Kamalakar gs <foxrun2...@gmail.com> wrote:

> 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.
>

The list doesn't take attachments. Also, the best way to ask for help
in tech forums is to be clear about your problem and write short,
samples of code and be descriptive when explaining where you
are facing issues.

Please don't expect the people to solve the problem for you so attaching
the original file is not advisable.

If your post for help is clear and to the point, answers would also be
like that. Otherwise you might get expansive answers, which may not
be very helpful.


> *
> *
> *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*
> *
> *
> *
> *
>

Format code without using asteriks or using something like pastebin
and post link here.



> *Thanks regards Kamalakar*
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
Regards,

--Anand
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to