Strings properties

jpcorzo

Member
Joined
Mar 30, 2005
Messages
6
Programming Experience
Beginner
I need some help trying to do a program that counts characters from other file using the string properties. if somebody can give me a clue or some hints, even send me an example ill appreciate.
Thanks in advance
Juan
 

PelleH

Member
Joined
Jun 29, 2004
Messages
8
Programming Experience
5-10
Hi,

Like this perhaps:

VB.NET:
Dim Reader AsNew StreamReader(New FileStream("c:\MyFile.txt", FileMode.Open))
Dim Text AsString = Reader.ReadToEnd 
MessageBox.Show(Text.Length.ToString)
Reader.Close()
 
Top Bottom