I need help! (again :>)
- Posted by Robert Craig <robert_craig at COMPUSERVE.COM> Jun 03, 1997
- 997 views
Joseph Martin's program contains: > n =3D find("1", file[i]) file[i] is a string of characters. To locate a string within another string use match(): n =3D match("1", file[i]) You could also try to match a longer string: n =3D match("Joseph", file[i]) Or, to locate a single character within a string use find(): n =3D find('1', file[i]) Note the difference between '1' and "1". '1' is an atom. "1" is a length-1 sequence. They are not the same. Your find() always fails because no element of sequence file[i] is a length-1 sequence "1". The elements of file[i] are all = single-character atoms. = Regards, Rob Craig Rapid Deployment Software