RosettaCodeData/Task/Repeat-a-string/Visual-Basic-.NET/repeat-a-string.visual
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

6 lines
266 B
Text

FileContents = "X".PadRight(FileSizeBytes - 1, "X")
Where:
* FileContents is the string to populate
* FileSizeBytes is the number of repetitions (Remember that "-1" is valid as we have already specified the first character as being "X", which is to be padded on.