Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    File write buffer has a size of 1000 - or maybe not

    Beginners
    1
    2
    150
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • spikey
      spikey F last edited by spikey

      (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/write

      Just 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.

      1 Reply Last reply Reply Quote 2
      • spikey
        spikey F last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post