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
 
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()
 
Back
Top