Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!MAYO.EDU!buchs From: buchs@MAYO.EDU Newsgroups: comp.lang.icon Subject: beginner help Message-ID: <9005291948.AA16575@fermat.Mayo.edu> Date: 29 May 90 19:48:06 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 29 I have just started with Icon. It looks like I really need to get "The Icon Programming Language" to get very far. What have others done? I have found a bit of info in some of the TR documents and I could probably read through some of the library programs to get ideas. I am trying to parse a file with lines of backslash delimited fields, with no trailing delimiter: field1\field2\field3 I thought I was on to an elegant way with the string scanning operator: procedure main() while line := read() do { line ? while write(tab(find("\\"))) do move(1) } end But I cannot get the last field. Any ideas? ------------------------------------------------------------- Kevin Buchs Internet: buchs@mayo.edu Mayo Foundation Is this my life or is it just an Rochester, MN 55905 incredible, high-speed, simulation? (507) 284-0009 -S. R. Cleaves -------------------------------------------------------------