I wouldn't recommend doing that in one line, as you also want to reset TextBox1.Lines before saving lines to "barcode.txt"
How you refer to "barcode.txt" depends on where it is in relation to your executable