def index():
     form = 
FORM(INPUT(_type='file',_name='myfile'),INPUT(_type='submit',_value='upload'))
     if form.process().accepted and form.vars.myfile:
           text =  form.vars.myfile.file.read()
           form = DIV(XML(text))
     return dict(form = form)

On Tuesday, 3 June 2014 01:55:58 UTC-5, Akhila Reddy wrote:
>
> I am a beginner.I want to extract some text from a file.Where do I upload 
> the file and how can I extract the text?Please help me out.(Using python)
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to