Archive: Write data from VB Textbox to File.txt


Write data from VB Textbox to File.txt
Hi,

I'm using MSVS 2008 Web Developer, and have added a textbox to a page.
Some VB code runs when a visitor clicks a button on the same page, and relevent data is placed in the textbox.
I want to write this data to a text file, which is then installed to the correct location, as directed by the installation .exe

Thanks,
Mike


The Quesiton...
So, my question is how to I get to that data in the textbox?
I thought that I could write to a file in VB, and install the file with the installer.
But I'm not sure that will work. It sounds a little klunky, and i thought that there was probably a slicker way to accomplish this.

Thanks,
Mike


What kind of textbox are you talking about? On a webpage? What does that have to do with NSIS installers? o__O


One way would be to append the data to your installer executable before it is downloaded. http://nsis.sourceforge.net/ReadCustomerData to read it. You can write the file using FileOpen/FileWrite/FileClose.

Stu