Removing 'spaces' from a string
#1

Hi guys, I am currently working on a system which is sensitive to spaces.

It reads values from a simple file like this.

Код:
Permission1
-Permission2
Permission3
ThisWouldBeTheError
If you didn't notice, the line 'ThisWouldBeTheError ' trails a space. Is there anyway I can remove that? It uses the function 'fread' to get the line, and is saved into the variable permissionHolder.

So I am guessing there could be a function like

pawn Код:
strescape(permissionHolder);
I hope it made sense to you, I am writing this at 1am in the morning :P
Reply


Messages In This Thread
Removing 'spaces' from a string - by Burthop - 20.08.2012, 23:44
Re: Removing 'spaces' from a string - by detter - 21.08.2012, 00:05
Re: Removing 'spaces' from a string - by Kar - 21.08.2012, 00:11

Forum Jump:


Users browsing this thread: 1 Guest(s)