Raised This Month: $ Target: $400
 0% 

Reading File Problem with spaces


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 03-16-2011 , 08:08   Reading File Problem with spaces
Reply With Quote #1

Hello,

I am trying to do a gather plugin, much like MatchMod Deluxe but with commands changed, and made from scratch.

i use read_file to read a file called admini.ini in free translation what will be admins.ini

there are only steamid's listed one below another limited by MAX_ADMINS 200

The problem is that when i read a line, it stores me with, i think, 2 or 3 spaces in front of the string.

i tried to use replace to get rid of these spaces, but no chance, any ideeas how to read a file line by line without the inexistent spaces in front of them ?

Replace doesn't seems to recognize that spaces, because i tried to replace " " with "" and no result.

Thank you.
DjOptimuS is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode