vb.net - TextBox writing on one line only -


when ever type in textbox, click button, have writeline. there way assign 1 text box first line, , second text box second line on notepad? when type new in it, delete had on first line, add new thing in text box?

i using.

    dim file system.io.streamwriter     file =      my.computer.filesystem.opentextfilewriter("c:/users/nick/documents/dra.txt", true)      file.writeline(namebasic)     file.writeline(lastbasic)     file.close() 

second argument in opentextfilewriter() method append. means strings appended end of file if true value.

try use false instead:

file = my.computer.filesystem.opentextfilewriter("c:/users/nick/documents/dra.txt", false)

upd

    dim read string = console.readline()     dim num integer     integer.tryparse(read, num) 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -