ww pointed out some basic troubleshooting steps, but at a glance after you used my code, I'll elaborate on his thorough post (thanks ww): you made changes that won't work. First, you have a semi-colon after the while() statement, and to further, you have to open a file and create a file handle. Changing the assignment of the attempted file handle to a statement to evaluate them is beyond the scope of my response.
You can't simply put a filename in a statement like that and expect it to work.
Again, this is why I coded my response this way; I wanted to give you a working example, but leave it open so you *had* to do some of your own homework.
Feel free to ask questions after you learn how to open a file for 'reading'.
-stevieb
In reply to Re^3: total noob trying to format a phone list
by stevieb
in thread trying to format a list
by sonikd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |