473,474 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reading text files into a password

1 New Member
Hi
I have recently been looking into writing and reading txt files on vb6
but im a bit stuck on how to check against what is in the txt file for example if the text document has "1","2" in i want it so when you enter 1 and 2 into 2 individual textboxs it will open a form

i also need to know how to scan through the txt document if there are more than 1 amount of data added so if the txt document has "1","2" then "3","4" then "5","6" and "7","8"and 5 and 6 are added into the two textboxs it will scan through the file until it finds "5","6" and then opens up the another form.

sorry if i havn't explained it very well
please tell me if you need more info of what it is that im trying to do
thanx
Feb 25 '08 #1
2 1227
kadghar
1,295 Recognized Expert Top Contributor
Hi
I have recently been looking into writing and reading txt files on vb6
but im a bit stuck on how to check against what is in the txt file for example if the text document has "1","2" in i want it so when you enter 1 and 2 into 2 individual textboxs it will open a form
...
If i well understood, it might be of help if you read the txt file into a string, and then use SPLIT (with Chr(13) for next line character) to chop the string into an array and then using FOR EACH and another SPLIT (with Chr(9) for tabs or with " " for spaces) create an array of arrays or a matrix where each row will have the info for each user, so just check the password column of the row that matches the name or id.
Feb 25 '08 #2
gobblegob
133 New Member
Try this mate,


http://www.thescripts.com/forum/thread674296.html

Gobble.
Feb 26 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: wooks | last post by:
<?xml version="1.0" ?> - <xsd:schema targetNamespace="urn:faster:userlogin" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:faster:userlogin"> <xsd:include...
1
by: Magnus | last post by:
allrite folks, got some questions here... 1) LAY-OUT OF REPORTS How is it possible to fundamentaly change the lay-out/form of a report in access? I dont really know it that "difficult", but...
50
by: Michael Mair | last post by:
Cheerio, I would appreciate opinions on the following: Given the task to read a _complete_ text file into a string: What is the "best" way to do it? Handling the buffer is not the problem...
4
by: Jason Kumpf | last post by:
OK I've been staring at this code all day and still with everything I have tried I cannot figure out two problems I am having. Once is why the space limit for the directory I create in the code...
3
by: tigrrgrr42 | last post by:
I am working(vb.net03and05) with word documents stored in a sql db and I am currently bringing them from a byte array into a temp file to pop into word and make word do its thing as a com object. ...
2
by: Creascripts | last post by:
I'm having some problem with reading an .xml file: <?xml version="1.0" encoding="utf-8"?> <UserInfoListResult xmlns:xsd="http://www.w3.org/2001/XMLSchema"...
2
by: Mohit | last post by:
Hi Experts, I am working on a windows application that generates few text files and saves it onto the disk. Now I want that only my application can read the files i.e. I don't want the user to...
1
by: hott5hotj | last post by:
I have been trying to create an authentication system using PHP5+, MYSQL 5+ and APACHE2+ using Actionscript3. When I got the codes together my password and usernames would not check against the MYSQL...
1
AnuSumesh
by: AnuSumesh | last post by:
Hi, I want to read the text property of XML file. My xml file is as follows: <?xml version="1.0"?> <Domain_Credentials> <User> anu </User>
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.