Log in

View Full Version : Limit of string length for writefilestart?


tin3tin
4th April 2006, 00:08
I need to add a lot of characters to a string, and write it to a file, but there seem to be a limit around 100.

What do I do?

[EDIT: Is it writefilestart which has a limit of 100 characters?]

Tin2tin

tin3tin
4th April 2006, 12:02
I found out that it's writefile(start), which has this limitation. Run this script and see that the resulting fil will be missing the last characters. Can this limit be raised?

ovText = "1 ----------------------------"+chr(13)+
\ "2 ----------------------------"+chr(13)+
\ "3 ----------------------------"+chr(13)+
\ "4 ----------------------------"+chr(13)+
\ "5 ----------------------------"+chr(13)+
\ "6 ----------------------------"+chr(13)+
\ "7 ----------------------------"+chr(13)+
\ "8 ----------------------------"+chr(13)+
\ "9 ----------------------------"+chr(13)+
\ "10 ----------------------------"+chr(13)+
\ "11 ----------------------------"+chr(13)+
\ "12 ----------------------------"+chr(13)+
\ "13 ----------------------------"+chr(13)+
\ "14 ----------------------------"+chr(13)+
\ "15 ----------------------------"+chr(13)+
\ ""
Blankclip(length=128, width=32,height=32, fps=25)
writefilestart("C:\test.txt","ovtext")

IanB
4th April 2006, 15:51
The writefile* functions have a limit of 16 strings upto 254 chars each. These are in a static buffer. It could be increased but there needs to be a rational limit.

tin3tin
4th April 2006, 17:16
Thanks, it might be a good idea to increase the number of characters.

I found a workaround using the 'append=true' function.

But thanks for clearing this up for me.

Tin2tin