[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

For VeroLand

Posted on 1998-10-22
1
Medium Priority
?
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

656 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