Follow us on Twitter!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Thursday, April 17, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 29
Guests Online: 26
Members Online: 3

Registered Members: 82815
Newest Member: medjiking
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Visual basic


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-03-06 16:34
Im make a login and im having trouble with the open "***.txt" i want it to read froma txt doc and for some reason in have a compile error
i have it in the same folder and it still has an error
Author

RE: Visual basic

Mr_Cheese




Posts: 2468
Location: Brighton, UK
Joined: 30.11.04
Rank:
Uber Elite
Posted on 31-03-06 17:04
post the code you have so far and i'll be able to tell you where your going wrong.


http://www.hellboundhackers.org/
Author

RE: Visual basic


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-04-06 03:54
Dim user As String, password As String


Private Sub cmdSubmit_Click()
Open "userpassw.TXT" For Input As #1
Input #1, user, password
Call Login
Input #1, user, password
Call Login
Input #1, user, password
End Sub

Private Sub Login()
Dim userpass As String
If txtUser.Text = user Then
If txtPass.Text = password Then
Else
Else
End If
End If
End Sub
--------------------------------------------------------------------------------
ya i need some help plz its not the whole code but its what i have so far..
Author

RE: Visual basic


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-04-06 03:54
Dim user As String, password As String


Private Sub cmdSubmit_Click()
Open "userpassw.TXT" For Input As #1
Input #1, user, password
Call Login
Input #1, user, password
Call Login
Input #1, user, password
End Sub

Private Sub Login()
Dim userpass As String
If txtUser.Text = user Then
If txtPass.Text = password Then
Else
Else
End If
End If
End Sub
--------------------------------------------------------------------------------
ya i need some help plz its not the whole code but its what i have so far..
Author

RE: Visual basic


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 20-09-06 14:38
Well, if you're using VB.Net, I would suggest using the IO.Filestream object and a StreamReader to read from that file. If using VB6, then I think it would help more to know exactly what problem it's giving you. I'd have to say that your "nested" IF statements look rather warped if that's how they actually are in your program.

Here's a couple links that may help:
http://www.aivosto.com/visdev/fso.html
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusingsequentialfileaccess.asp
Author

RE: Visual basic


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-09-06 15:35
If you post the kind of error you get I'll be able to help you. Is it file not found, input past end of file or what??