Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72414
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: How to read a directory path from a txt file |
| Date | 2014-06-02 15:44 +0100 |
| References | <a3298f5d-dcf9-4dd7-bae8-b655e8224114@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10560.1401720230.18130.python-list@python.org> (permalink) |
On 02/06/2014 15:18, Samuel Kamau wrote: > I have created a txt file with various paths to directories. The paths look like this > /home/wachkama/Desktop/api/genshi > /home/wachkama/Desktop/www/portal/schedule > /home/wachkama/Desktop/show/help.genshi > > How do i read this paths in python ? > https://docs.python.org/3/library/functions.html#open https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to read a directory path from a txt file Samuel Kamau <wachkama@gmail.com> - 2014-06-02 07:18 -0700
Re: How to read a directory path from a txt file Rustom Mody <rustompmody@gmail.com> - 2014-06-02 07:28 -0700
Re: How to read a directory path from a txt file Chris Angelico <rosuav@gmail.com> - 2014-06-03 00:29 +1000
Re: How to read a directory path from a txt file Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-06-02 15:44 +0100
Re: How to read a directory path from a txt file Samuel Kamau <wachkama@gmail.com> - 2014-06-02 08:13 -0700
Re: How to read a directory path from a txt file Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-02 16:24 +0000
Re: How to read a directory path from a txt file Samuel Kamau <wachkama@gmail.com> - 2014-06-02 10:18 -0700
csiph-web