Dim bytes(999) As Byte
Dim bytes(1024) As Byte, surely!? ;)
But maybe easier something like (not syntax checked):
File.WriteAllText(Iif(myString.Length > 1024, myString.Substring(0,1024), myString), Encoding.ASCII)
Bwahahaah.. John, dang.. You kill me, you really do. Youre a proper funny guy, and I love your posts. Hopefully you'll find it a compliment to know I think of you like I do Data in Star Trek - hilarious and amazing because he's absolutely right on every occasion and works with infallible precision.
Ah.. therein lies the final nitpick; kb most definitely and resolutely means kilobits, regardless of what size we are attributing to the kilo part, we really should be advising the OP to make an array of Byte(124) or Byte(127)