Re: [Tutor] how to read a text file, and find items in it

2006-03-09 Thread R. Alan Monroe
> I assume you are on a Mac? Interestingly I didn't know the Terminal > supported drag n drop from finder. Pretty neat! The tradeoff is that on the Mac, the home and end keys don't move your cursor to the beginning/end of the commandline you're typing (g!!). Alan ___

Re: [Tutor] how to read a text file, and find items in it

2006-03-09 Thread Alan Gauld
Hi Adam, Its not really clear what you want us to do, so I;ll just make some general comments on the code... In future it would help if you tell us whether there is a problem, and if so what iut is, including any error text. Or whether you would just like a critique of your code. > I am trying to

[Tutor] how to read a text file, and find items in it

2006-03-08 Thread adam
hey guys! I am trying to learn a bit of python, and thought it would be a challenge to make a script that reads a text file and returns all the instances of a word I specify. Basically a find and then a list of all the finds. I am using a text file with some random words in it to test it out on