1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

counting special characters from a text file

Discussion in 'Visual Basic ( VB )' started by kamote, Nov 26, 2007.

  1. kamote

    kamote New Member

    Joined:
    Nov 26, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i was able to create a program on how to count words from a text file but im having problems on how to count and display the "special characters" from this text file. Im referring to special characters like "." ";" "?" "!" "(" etc...

    any ideas? :)
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Loop through the string in the same manner as you do for the characters and add each numbers when any such character is found.
     

Share This Page