1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Do you know a free program that can auto count the number of words in a doc?

Discussion in 'Content Management' started by tesla, Jan 24, 2006.

  1. #1
    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?
     
    tesla, Jan 24, 2006 IP
  2. sachin410

    sachin410 Illustrious Member

    Messages:
    6,422
    Likes Received:
    573
    Best Answers:
    0
    Trophy Points:
    410
    #2
    How about Microsoft Word ?
     
    sachin410, Jan 24, 2006 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    What sort of document?
     
    digitalpoint, Jan 24, 2006 IP
  4. tesla

    tesla Notable Member

    Messages:
    2,840
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    203
    #4
    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.
     
    tesla, Jan 24, 2006 IP
  5. ing

    ing Well-Known Member

    Messages:
    500
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    195
    #5
    ing, Jan 24, 2006 IP
    sachin410 likes this.
  6. tesla

    tesla Notable Member

    Messages:
    2,840
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    203
    #6
    I really appreciate that. That is exactly what I was looking for. :)

    I bookmarked that page for future use.
     
    tesla, Jan 24, 2006 IP
  7. khudania

    khudania Well-Known Member

    Messages:
    303
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #7
    But why use wordpad when you can have complete office suite from openoffice

    http://www.openoffice.org/
    I use this and its free.
     
    khudania, Jan 24, 2006 IP
    yfs1 likes this.
  8. lukezli

    lukezli Greenhorn

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #8
    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.
     
    lukezli, Nov 15, 2010 IP
  9. lukezli

    lukezli Greenhorn

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #9
    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.
     
    lukezli, Nov 15, 2010 IP
  10. lely

    lely Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i am looking for too,Microsoft Word will helpful?
     
    lely, Nov 18, 2010 IP
  11. etc

    etc Well-Known Member

    Messages:
    3,233
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    158
    #11
    i think almost all of the word processors can count words. openoffice, microsoftoffice, abiword, staroffice and etc.
     
    etc, Nov 18, 2010 IP