how to read numeric digits in a text file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adil sajjad
    New Member
    • Jan 2010
    • 1

    how to read numeric digits in a text file

    actually i want to search english digits from a urdu text file and then to replace it with urdu digits.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Read the text file.
    Loop through the bytes/chars for what you searching for
    Repalce them with what the urdu digits you want

    Comment

    • !NoItAll
      Contributor
      • May 2006
      • 297

      #3
      Dim sLatinNums(9) as String = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}
      Dim sUrduNums(9) as String = {"urdu0", "urdu1", "urdu2", etc....
      For I as Integer = 0 to 9

      sUrduTextWithLa tinNumbers.Repl ace(sLatinNums( I), sUrduNums(I))

      Next I

      Comment

      Working...