File write buffer has a size of 1000 - or maybe not
-
(could not find anything about when searching for "write file buffer" and "write file" returned 290 results, interesting the search for "write file buffer" returns posts only containing "buffer" e.g. https://fuzearena.com/forum/topic/542/issues-with-curves-and-polygons "+write" or "and write" does not change that.)
@FUZE team Please add a note in here if you agree:
https://fuzearena.com/help/view/writeJust pseudo code
text = "with more than 1000 chars....." handle = open() write( handle, string ) close(handle)
Will write 1000 characters, so if your string contains more, write it by batchs of 1000 characters .
Appendix: I think the array to string conversion has a limit of 1024 chars - the buffer of the write() function was not tested again under that circumstances that I found my lazy-coding mistake. -
It could be that I am wrong here: I just found out that the string I wanted to write is already cut off earlier:
I converted an array to a string. And the string has always a size of 1024 for bigger arrays.
My target is to write an array just like this into the file - being lazy - and then interpreting it during reading. So, now worries I just write it struct by struct, which are never > 1000 chars long.