Raised This Month: $ Target: $400
 0% 

fwrite_blocks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 04-29-2012 , 13:53   fwrite_blocks
Reply With Quote #1

Hey guys.

I make a string:
PHP Code:
new str[65] = "blabla" 
and then I do
PHP Code:
str[strlen(str)] = EOS 
and then
PHP Code:
fwrite_blocks(some_file_i_openedstrcharsmax(str), BLOCK_CHAR
Then when I look in that file (I use Notepad++), I see:
"blabla[NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL][NULL].... etc...."
at the amount of 65 (which is the str length) - blabla characters, which is 6. I see it then 59 times.

Why is that? I do the EOS thing, what is wrong with the code? (there is no code to show, its really only these 3 lines after I fopen(some_file_i_opened, "rt+")
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable 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 07:49.


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