Dilbert (hehe),
Try this as an example:
Open INI_FILE For Input As filenum 'Set proper source and
While Not EOF(filenum)
Line Input #filenum, inrec
inrec = UCase$(RTrim$(LTrim$(inrec)))
If inrec <> "[SYSTEM]" And Mid(inrec, 1, 1) <> "#" And inrec <>...