Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72413

Re: How to read a directory path from a txt file

References <a3298f5d-dcf9-4dd7-bae8-b655e8224114@googlegroups.com>
Date 2014-06-03 00:29 +1000
Subject Re: How to read a directory path from a txt file
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.10559.1401719388.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Jun 3, 2014 at 12:18 AM, Samuel Kamau <wachkama@gmail.com> 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 ?

This sounds like homework. You'll need to go back to the problem
you've been given, figure out what you're actually trying to
accomplish, and then break that down into several pieces. We're happy
to help you learn, but we will not just do the assignment for you, as
that's counter-productive for all of us.

If it *isn't* homework, please explain in much more detail what it is
you're trying to do here.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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