Link to home
Create AccountLog in
Avatar of eneate
eneateFlag for United Kingdom of Great Britain and Northern Ireland

asked on

When rerieving a string from an ini file after the text I get a series of square blocks how do I remove them?

Hi

When retrieving a string from a text file, I get the data with no problem, but the application is seeing the spaces afterwards as a series of square blocks? I have tried using trim to remove these spaces but it doesn't work, the only way I have managed to get the data so far it to load it into a text box first then trim it and it is fine. Anyone any ideas how to remove these unwanted characters without having to load into a text box?
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of eneate

ASKER

Hi

It almost works it now just leave one unwanted character at the end?
Avatar of eneate

ASKER

Thanks Tim I just added a -1 to the end and now all works fine