Raised This Month: $32 Target: $400
 8% 

Max Chars 16384


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-14-2020 , 21:50   Max Chars 16384
Reply With Quote #1

Hi guys. Im trying to print big amount of lines to .txt file, but 'something' is like limiting max chars for input (in my several tests its stuck at 16384)

Does anyone can help here?

Other things i tryed are:

1) #pragma dynamic 524288 (again 16384)
2) set all data to json and send it with curl (again 16384 chars sent to the site)

Thanks in advance!
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-14-2020 , 22:15   Re: Max Chars 16384
Reply With Quote #2

What do you mean by "print"? Show your code.
__________________
fysiks is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-14-2020 , 22:23   Re: Max Chars 16384
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
What do you mean by "print"? Show your code.
Code:
new string[ 30000 ]
...
for loop:
{
        len += formatex( string[ len ], 29999 - len, "..." )
}
write_file( file, string, -1 )
no matter if i change string size, 16384 chars are printed to 'file'
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 05-14-2020 at 22:24.
JocAnis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-14-2020 , 22:38   Re: Max Chars 16384
Reply With Quote #4

Don't use write_file(), use fopen(), fputs(), fclose(), etc. Try writing in multiple chunks (like writing on each iteration of your loop). I can't think of any reason to write it all at once.
__________________
fysiks is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-15-2020 , 07:18   Re: Max Chars 16384
Reply With Quote #5

okay thanks @fysiks
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis 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 15:46.


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