I was wondering if anyone here knows of a program which is either free or very cheap which can automatically count the number of words in a document?
I don't have Microsoft word, and it isn't a cheap program to get. I'm writing documents in word pad, so it is a .doc file. I was thinking maybe there is a website like copyscape where I can paste my doc into a window and then the webpage automatically tallies up the number of words I've written.
Did a search.. this sounds like what you are looking for.. http://www.tinman.org/sue/gofish/WordCount.html
I really appreciate that. That is exactly what I was looking for. I bookmarked that page for future use.
But why use wordpad when you can have complete office suite from openoffice http://www.openoffice.org/ I use this and its free.
There are a multitude ways to do this. Here is some java code (if you use java): input.txt (your input file) //begin code import java.io*; import java.util.*; import java.util.Scanner; class read{ public static void main(String[] args){ BufferedReader f=new BufferedReader(new FileReader("input.txt")); int a=0; while(1){ String str=f.readLine(); if(str.equals("")){ break; } StringTokenizer st=new StringTokenizer(str); a+=st.countTokens(); } System.out.println(count); } } I like this because if you have a file saved, you don't need to go to an external website to read this. In addition, some javascript: (you can put this in your browser (the address bar)) (replace blah blah blah with your copy and paste) javascript:s="blah blah blah";c=1;for(i=0;i<s.length;i++){if(s.charAt(i)==' '){c++;}}alert(c); An alert box will pop up showing you how many words. super short code. In addition, if you wanted to give me specifics on how you wanted your words counted (I know some websites may be innacurate and count numbers as words, etc. and weird stuff with quotes and period (sometimes counting them as words) I can make a quick and cool javascript applet for you on my website below. Drop a comment if interested.
Screw it. Here I put my own version up on my site: http://professorjava.weebly.com/word-counter-tool.html Check it out, its pretty well done if I say so myself. Very easy code, comment if you want me to give it to you. Also, I'd love to add extra features to it (article counting, most used words, etc.) so comment on what type of features you'd like to see. Code is all done in javascript.
i think almost all of the word processors can count words. openoffice, microsoftoffice, abiword, staroffice and etc.