hi,,,i have text file where the content like this
this my code for write all content of text file
and my question or my problem is,
Quote:
Write COnf Code:
Sub WriteKonfFile() Dim objFSO, cTxtFile Set objFSO = CreateObject("Scripting.FileSystemObject") Set cTxtFile = objFSO.CreateTextFile(App.Path & "\conf.txt", True) cTxtFile.WriteLine ("server " & cmbServer.Text) cTxtFile.WriteLine ("proxy 192.168.1.1") cTxtFile.WriteLine ("proxy-option " & txtProxy.Text) cTxtFile.Close End Sub
and my question or my problem is,
- how to delete the text proxy-option www.facebook.com on text file if user uncheck the checkbox??
- how to write text proxy-option www.facebook.com if user check the checkbox