Awhile is an adverb which means "for a while."
A while is two words, the article plus a noun, usually used after the preposition for.
Examples: I thought awhile before I answered. I thought for a while before I answered.
I thought for a while before I answered.
Complete Contents Glossary
Grammar Contents