Results 1 to 2 of 2

Thread: How To Count The numeral Of typeset?

  1. #1
    CoxWatson is offline Senior Member
    Join Date
    Dec 2009
    Posts
    232
    Rep Power
    3

    Default How To Count The numeral Of typeset?

    I am last year BSc(I.T) student. I am learning programming language. I want to know how to count the number of character which is present in the file?

  2. #2
    BrooksGray is offline Senior Member
    Join Date
    Dec 2009
    Posts
    231
    Rep Power
    3

    Default

    I do not know of any direct way of determining the number of characters in a text file. You can use the following very simple code for Count the Number of Characters:

    Code:
    Const ForReading = 1
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile("C:ScriptsTest.txt", ForReading)
    strCharacters = objFile.ReadAll
    strCharacters = Replace(strCharacters, vbCrLf, "")
    Wscript.Echo Len(strCharacters)
    objFile.Close

Similar Threads

  1. C program for to count (-) and (+) numbers.
    By MoralesMyers in forum Programming
    Replies: 1
    Last Post: 01-19-2010, 05:39 PM
  2. Word count for multiples files
    By Fred Morgan in forum Programming
    Replies: 0
    Last Post: 07-27-2009, 11:37 AM
  3. Word count for multiple files
    By Felipe Pollard in forum Everything Else
    Replies: 0
    Last Post: 07-03-2009, 08:11 AM
  4. Transistor Count
    By vandana43 in forum Processors
    Replies: 0
    Last Post: 03-19-2008, 11:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48