Re: [Tutor] help with reading a string?

2018-07-16 Thread Steven D'Aprano
Hi Crystal, and welcome! My response is further below, after your question. On Mon, Jul 16, 2018 at 05:28:37PM -0500, Crystal Frommert wrote: > Hi, I am a beginner comp sci teacher at an all-girls high school. The girls > are learning how to read from a txt file and search for a string. > >

Re: [Tutor] help with reading a string?

2018-07-16 Thread Alan Gauld via Tutor
On 16/07/18 23:28, Crystal Frommert wrote: > are learning how to read from a txt file and search for a string. > > Here is a sample of text from the txt file: > TX,F,1910,Mary,895 > TX,F,1910,Ruby,314 > TX,F,1910,Annie,277 > > How do they read the number after a certain searched name and then

[Tutor] help with reading a string?

2018-07-16 Thread Crystal Frommert
Hi, I am a beginner comp sci teacher at an all-girls high school. The girls are learning how to read from a txt file and search for a string. Here is a sample of text from the txt file: TX,F,1910,Mary,895 TX,F,1910,Ruby,314 TX,F,1910,Annie,277 TX,F,1910,Willie,260 TX,F,1910,Ruth,252