Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

count characters in a file

What is code for counting the number of characters in a file?
I've written out a file, now i want the number of characters in it.
Avatar of amx
amx
Flag of United Kingdom of Great Britain and Northern Ireland image

i'm assuming that if you have written out the file then you must have asssigned it to a String variable before printing out the file.

if you have then you could just find out the length of the string which would be the same as the number of characters.

ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xoxomos
xoxomos

ASKER

Thanks, I don't know how this got in there 4 times.