Hi people!
I've been at this for hours, the API is starting to send me
bats, time to ask the experts...
My goal is to in the end send parts of a text file as byte arrays to mimic a file transfer program,
so I thought a good start would be to read the textfile and cut it into strings of a certain size.
Split() seems handy, since it puts them in a
string array, or tokenizer, but how do I set the delimiter to simply be a size, say 254 chars (1016 bytes right?)?
Or is there a way to insert another delimeter in a interval, eg ":" after every n-th char?
Or can this be done straight into a byte array using getBytes() and specify the size of the array alements?
Sorry to put three questions in one, as You can guess it's for some silly school project, but I'll be alright if I can just get a push in the right direction..
Thanks!
