Re: Reading by positions plain text files

2010-12-13 Thread javivd
On Dec 12, 11:21 pm, Dennis Lee Bieber wrote: > On Sun, 12 Dec 2010 07:02:13 -0800 (PST), javivd > declaimed the following in > gmane.comp.python.general: > > > > > f = open(r'c:c:\somefile.txt', 'w') > > > f.write('0123456789\n0123456789

Re: Reading by positions plain text files

2010-12-12 Thread javivd
On Dec 1, 7:15 am, Tim Harig wrote: > On 2010-12-01, javivd wrote: > > > > > > > > > > > On Nov 30, 11:43 pm, Tim Harig wrote: > >> On 2010-11-30, javivd wrote: > > >> > I have a case now in wich anotherfilehas been provided (

Re: Reading by positions plain text files

2010-12-03 Thread javivd
On Dec 1, 3:15 am, Tim Harig wrote: > On 2010-12-01, javivd wrote: > > > > > On Nov 30, 11:43 pm, Tim Harig wrote: > >> On 2010-11-30, javivd wrote: > > >> > I have a case now in wich another file has been provided (besides the > >> > datab

Re: Reading by positions plain text files

2010-11-30 Thread javivd
On Nov 30, 11:43 pm, Tim Harig wrote: > On 2010-11-30, javivd wrote: > > > I have a case now in wich another file has been provided (besides the > > database) that tells me in wich column of the file is every variable, > > because there isn't any blank or tab

Reading by positions plain text files

2010-11-30 Thread javivd
Hi all, Sorry, newbie question: I have database in a plain text file (could be .txt or .dat, it's the same) that I need to read in python in order to do some data validation. In other files I read this kind of files with the split() method, reading line by line. But split() relies on a separator