Re: Tab delimited file

2006-08-11 Thread Gabriel Genellina
At Friday 11/8/2006 11:41, Colin Wildsmith wrote: >I am making a gui for the purpose that I can >change the values in a list of different >criteria which is found in a text file, such as: > >Name(tab)rating(tab)breast size(tab)occurrences >… >… >… > >However as far as I know Python does not allo

Re: Tab delimited file

2006-08-11 Thread Tim Chase
> However as far as I know Python does not allow you to easily change a > specific line in a text file. You have to place the whole file to memory, > change what you need to and then write the file back after deleting the > previous information. > > Assuming this is true, how do i find where the

Tab delimited file

2006-08-11 Thread Colin Wildsmith
Hello, I am making a gui for the purpose that I can change the values in a list of different criteria which is found in a text file, such as:   Name(tab)rating(tab)breast size(tab)occurrences … … …   However as far as I know Python does not allow you to easily change a specific line

Re: how to read a tab delimited file

2005-03-15 Thread Steven Bethard
> Peter Hansen wrote: > >>jrlen balane wrote: >> >>>how would i read a tab delimited file? at the same time put what i >>>read in an array, say for example that i know that the file is an >>>array with column= 5 and row=unknown. >> >&

Re: how to read a tab delimited file

2005-03-15 Thread jrlen balane
if i am going to do this, how should i continue: how would i know the end of file? table_data = open(filename, 'r') table_data.readlines() On Tue, 15 Mar 2005 23:37:50 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: > jrlen balane wrote: > > how would i read a tab de

Re: how to read a tab delimited file

2005-03-15 Thread Peter Hansen
jrlen balane wrote: how would i read a tab delimited file? at the same time put what i read in an array, say for example that i know that the file is an array with column= 5 and row=unknown. Use the "csv" module. Although that stands for "comma separated values", it readily

how to read a tab delimited file

2005-03-15 Thread jrlen balane
how would i read a tab delimited file? at the same time put what i read in an array, say for example that i know that the file is an array with column= 5 and row=unknown. -- http://mail.python.org/mailman/listinfo/python-list