I have a text config file that I have down-loaded from a device. The file lists each port on the device and the port’s configuration parameters. The name and number of parameters varies according to the type of port. I want to come up with a routine to read the text file and assign one record per port. I also want to have the fields on each record match the parameters of the port.
I have done something similar before using “open file for input as” and then using string functions to pick out what information I needed. But I have only done this for fields on the same record.
I don’t know how to break one text file into multiple records. i.e. As the procedure is reading in the text file, when it detects certain characters, it starts a new record.
Thanks in advance for any thoughts.
I have done something similar before using “open file for input as” and then using string functions to pick out what information I needed. But I have only done this for fields on the same record.
I don’t know how to break one text file into multiple records. i.e. As the procedure is reading in the text file, when it detects certain characters, it starts a new record.
Thanks in advance for any thoughts.