Solved

For VeroLand

Posted on 1998-10-22
1
143 Views
Last Modified: 2010-04-30

Hi,

You have previously answered a Question named
Password/Login from File.

In this example, which I found most interesting,
how do you populate your array from a file?

That is, loading the username and password from a file.

0
Comment
Question by:idcanada
1 Comment
 
LVL 2

Accepted Solution

by:
Veroland earned 0 total points
ID: 1441160
   Dim strInput As String
    Dim LoginPWD(3, 2) As String
    Dim I As Integer
   
    I = 0
    Open "d:\aaa_source\testfile.txt" For Input As #1
    Do Until EOF(1)
        Input #1, strInput
        LoginPWD(I, 0) = strInput
        Input #1, strInput
        LoginPWD(I, 1) = strInput
    Loop


The layout of the text file is as follows

User1
Password
User2
Hello
User3
1234

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now