Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 19:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB6] Help write to file

Discussion on [VB6] Help write to file within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
[VB6] Help write to file

Hi im trying to make a program that will add a text from textbox 1 and a ip adress to a text file but the program says text already exist all the time

PHP Code:
Option Explicit
Dim txtthere 
As Boolean
Private Sub Command1_Click()
If 
txtthere True Then
    MsgBox 
"There is already text there!"
Else
    
Dim sFileText As String
    Dim iFileNo 
As Integer
    iFileNo 
FreeFile
    
    Open App
.Path "\bt.txt" For Output As #iFileNo
    
Print #iFileNo, "74.125.87.103" & Text1.Text
    
Close #iFileNo
    
txtthere True
End 
If

End Sub

Private Sub Form_Load()
Dim sFileText As String
Dim iFileNo 
As Integer
iFileNo 
FreeFile
Dim i
Open App
.Path "\bt.txt" For Input As #iFileNo
    
Do While Not EOF(iFileNo)
        
Input #iFileNo, sFileText
        
1
    Loop
Close 
#iFileNo
If >= 1 Then
    txtthere 
True
Else
    
txtthere False
End 
If
End Sub 
ax5 is offline  
Reply


Similar Threads Similar Threads
anyone post here the file of editing file.. the .edf file
07/13/2013 - RF Online - 3 Replies
please post here... so that i can download again.. i guess the old one thread was gone.. i've been search for an hour in this section.. but i can't see it... thanks..
d2nt write to file
05/27/2010 - Diablo 2 - 1 Replies
Hi zusammen - ich bin leider erst dabei den syntax von den scripts zu lernen und nachvollziehen - eventuell findest sich ja ein script-guru der das ganze etwas beschleunigt :P ich würde gerne von d2nt eine file schreiben lassen. im endeffekt sollen da die ganzen sachen mit timestamp rein, die in der itemlog auftauchen. sinn des ganzen ist, dass der bot auf nem anderen rechner läuft und ich das ganze gern hier auslesen würde :) bin von natur aus faul ^^ also kurzum -> will die itemlog...
How to open mesh file and anim file(dekaron).PLZ~
02/15/2010 - Dekaron Private Server - 11 Replies
How to open mesh file and anim file(dekaron).PLZ~



All times are GMT +1. The time now is 19:24.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.