Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

info from file

hello,
I have this in Accounts.txt
name@mail.com;temp123

and this in my VB6
WebBrowser.Document.Forms("MailForm").All("email").Value = App.Path & "\Accounts.ini"
WebBrowser.Document.Forms("MailForm").All("password").Value = App.Path & "\Accounts.ini"

but how do I make it so it reads email and password?
0
aplelois
Asked:
aplelois
  • 4
  • 3
1 Solution
 
apleloisAuthor Commented:
because is not the same question is it?
0
 
apleloisAuthor Commented:
readin from a .ini file that contains

[UserNames]
Text_Email=name@mail.com
Text_Password=temp123

and here reading from a .txt file that contains
name@mail.com;temp123
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
apleloisAuthor Commented:
instead of investigating my questions why dont you try helping me better?
0
 
EDDYKTCommented:
Dim ff As Integer, Filename As String, s As String
   
Filename = "yourfullpathfilename.txt"
ff = FreeFile
Open Filename For Binary Access Read Lock Read Write As #ff
s = Space$(LOF(ff))
Get #ff, , s
Close ff

username = split(s, ";")(0)
password = split(s, ";")(1)
0
 
apleloisAuthor Commented:
no, is not working!!
0
 
EDDYKTCommented:
it works for me what doesn't work?

debug.print split(s, ";")(0)
debug.print split(s, ";")(1)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now