Re: [Tutor] text file to excel csv file using python programming

2008-11-26 Thread Gilbert
Hi Kent, thanks for the valuable suggestion. to make it more clearer here is my example... Below is my input text file in dlg format. this dlg file contains 2 information. one is for coordinate x=50, y=55 and another is for coordinate x=60, y=65.

[Tutor] text file to excel csv file using python programming

2008-11-25 Thread Gilbert
Hi People, I tried to look for some answers but I see only same data format processing ( *.txt to *.txt ) in python. my question is how to convert a text file ( e.g. *.log, *.dlg ) to excel *.csv using python programming. any suggestion and where I can get this information for further

Re: [Tutor] text file to excel csv file using python programming

2008-11-25 Thread Serdar Tumgoren
Hi Gilbert, Check out the csv module in python's standard library. It can convert from .txt into Excel and vice versa http://www.python.org/doc/2.5.2/lib/module-csv.html ___ Tutor maillist - Tutor@python.org

Re: [Tutor] text file to excel csv file using python programming

2008-11-25 Thread Gilbert
Hi Serdar, ok thanks for your quick reply. I'll try to check this module. Hi people serdar, in case you have some websites or books you can recoomend that have some sample python codes for converting text files ( e.g. *.dlg, *.log ) to *.csv, kindly share. best regards, Gilbert On Wed,

Re: [Tutor] text file to excel csv file using python programming

2008-11-25 Thread Serdar Tumgoren
Hey Gilbert, The below link leads to a very basic script I put together with some assistance from several of the tutors on this list. It might give you a basic idea on how to use the csv module. http://forjournalists.com/cookbook/index.php?title=Itemizer

Re: [Tutor] text file to excel csv file using python programming

2008-11-25 Thread Gilbert
Hi Serdar, I will check on this. thanks a lot. best regards, Gilbert On Wed, Nov 26, 2008 at 7:40 AM, Serdar Tumgoren [EMAIL PROTECTED]wrote: Hey Gilbert, The below link leads to a very basic script I put together with some assistance from several of the tutors on this list. It might

Re: [Tutor] text file to excel csv file using python programming

2008-11-25 Thread Kent Johnson
On Tue, Nov 25, 2008 at 6:16 PM, Gilbert [EMAIL PROTECTED] wrote: Hi People, I tried to look for some answers but I see only same data format processing ( *.txt to *.txt ) in python. my question is how to convert a text file ( e.g. *.log, *.dlg ) to excel *.csv using python programming.