Code tags should be put on that.
Where is your file? Is it in the same dir as the prog? (I believe "\name" is in the root, and "name" is in the dir of the prog. But it might be the other way around. Try both.)
the file "spells.txt" is in the same folder that i am saving this program in. also i used this code on my old computer and it seemed to work then, that was on a xp computer this one is now windows 7 and i cant get it to work.
so that is stupid.....with windows 7 you cant name a file "name.txt" cause it thinks that the .txt is part of the name and not the file type....so it was looking for "spells.txt.txt" thanks for your guys input though :D