Raised This Month: $ Target: $400
 0% 

Writing to file?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-24-2010 , 08:45   Re: Writing to file?
Reply With Quote #1

I thought trim removes the spaces in the array? Or do the blanks not get written in the file?
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-24-2010 , 08:52   Re: Writing to file?
Reply With Quote #2

Quote:
Originally Posted by nikhilgupta345 View Post
I thought trim removes the spaces in the array? Or do the blanks not get written in the file?
An array is not filled with spaces, it is filled with null characters. When you read name,authid,ip,etc, the array is filled with the data followed by null characters which do not need to be trimmed. Search the web for null terminated strings for more info.
__________________

Last edited by Bugsy; 07-24-2010 at 09:03.
Bugsy is offline
Reply



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 00:06.


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