Thanks guys for your help. To reply to gav^, I created the file using the vi editor, so I don't see why there should be a problem with the line endings.
Also, thank you, DamnDirtyApe, for the one-liner. If I already have some files with "-w" would it affect it (make it "-w -w"), or will it just not consider it?