base64 encoding .txt file

So far i understand, but as i am beginner, i do not know how to measure char length, with string it is very easy (String.length():wink: