Sequence Building
- Posted by Joe Phillips <bubba at TXWES.EDU> Apr 27, 1998
- 719 views
I know I am asking a simple question, but I am spending too much time testing this. I need to read from a file, delimited by commas, and place into sequence of sequences. That is field 1,field 2,field 3,field 4 would result in line = {{field 1},{field 2},{field 3},{field 4}} I am getting confused when I start with line = {} do I append, use &, or what ? I am reading with getc, so I have to & some and append some. But, I am not able to keep it straight. Any clarification available? Should I start with line = {{},{},{},{}} It is much easier to process. But ,this is so restrictive as to number of fields to read! I am clear on the input procedure. The problem exists whether I use gets or getc, I still have to parse the line. ( BTW, I won't stop using my signature based on the recent rash of flames. Actually, the analogy is quite appropriate. If you want me off the list, please indicate that as non-profanely as you can. ) + | / \ / \ Rev. Joe Phillips, Pastor |SBC| Mambrino Baptist Church 817-573-4901 | | Granbury, Texas