You should tell us what you want to do.
I see only a part of the sketch, and I don't know what 'txt' is filled with at the start.
You should tell us what you want to do.
I see only a part of the sketch, and I don't know what 'txt' is filled with at the start.