wc completed using ReadFile method
Refactored Head,Tail,Uniq