Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21995

how to delete text

$
0
0
hi,,,i have text file where the content like this
Quote:

server 192.168.100.100 80
proxy 192.168.1.1
proxy-option www.facebook.com
this my code for write all content of text file
Write COnf Code:
  1. Sub WriteKonfFile()
  2.    Dim objFSO, cTxtFile
  3.    Set objFSO = CreateObject("Scripting.FileSystemObject")
  4.    Set cTxtFile = objFSO.CreateTextFile(App.Path & "\conf.txt", True)
  5.    
  6.     cTxtFile.WriteLine ("server " & cmbServer.Text)
  7.     cTxtFile.WriteLine ("proxy 192.168.1.1")
  8.     cTxtFile.WriteLine ("proxy-option " & txtProxy.Text)
  9.  
  10.  
  11.    cTxtFile.Close
  12. 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
thanks b4 for your help
Attached Images
 

Viewing all articles
Browse latest Browse all 21995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>