file pointer array
- From: FSH <lee.joosang@xxxxxxxxx>
- Date: Mon, 4 Jun 2012 18:21:20 -0700 (PDT)
Hello,
I have a simple question. I wish to generate an array of file
pointers. For example, I have files:
data1.txt
data2.txt
data3.txt
.....
I wish to generate fine pointer array so that I can read the files at
the same time.
for index in range(N):
fid[index] = open('data%d.txt' % index,'r')
I look forward to your advice for this problem.
-FSH
.
- Follow-Ups:
- Re: file pointer array
- From: Steven D'Aprano
- Re: file pointer array
- From: Ben Finney
- Re: file pointer array
- Prev by Date: Re: ./configure
- Next by Date: Re: file pointer array
- Previous by thread: Help needed with nested parsing of file into objects
- Next by thread: Re: file pointer array
- Index(es):