eneate
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?
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks Tim I just added a -1 to the end and now all works fine
ASKER
It almost works it now just leave one unwanted character at the end?