There may be problems if you open a file for reading and appending at the same time. Also, it appears that you swapped your variable names: your "write" file is for reading and your "read" file is for writing.

I would do something like the following as opposed to having both streams open at once:

The above if(add==aword) is checking if add is the empty string (because aword hasn't been assigned anything yet). You should get rid of this check because otherwise it would only go through if the user enters nothing.