Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1479

How Can I Open Large Text Files In C# and Check Through them Faster?

by vril - 05 May, 2020 - 04:21 AM
This post is by a banned member (vril) - Unhide
vril  
Infinity
275
Posts
79
Threads
4 Years of service
#1
(This post was last modified: 05 May, 2020 - 04:22 AM by vril.)
Hey guys I was wondering how I can open up a FAT DB in C#. I basically made a DB lookup/search in C#. Where the user can enter a email and it prints the full combo. So far I've got to the point where I can search through smaller dbs but when I put lets say Exploit.In, It will take FOREVER. Can anyone help me speed up the process? Here is the code so you guys can try to help. Sorry if it very sloppy code, Im pretty new at C#.

BTW I have a good pc so thats not the problem.


Hidden Content
You must register or login to view this content.

This post is by a banned member (Suspect) - Unhide
Suspect  
Registered
75
Posts
2
Threads
4 Years of service
#2
(This post was last modified: 05 May, 2020 - 02:53 PM by Suspect.)
You could either use an Indexer (Fastest), or you could use a Parralel.foreach loop. Indexer is by far the fastest with iteration though so i'd recommend that.

Indexer + Lock object + Multithreading. 

If you are paying I can write you a piece of code that would be by far the fastest way of iteration.

 
This post is by a banned member (JewishCrack) - Unhide
This post is by a banned member (r1v3rs1de) - Unhide
r1v3rs1de  
Registered
1
Posts
0
Threads
4 Years of service
#4
(This post was last modified: 17 May, 2020 - 02:59 AM by r1v3rs1de.)
I need to see the code posted first

I think you better use sqlite which is a simple but powerful embedded database. So my recommendation:

- learn how to use sqlite
- create a simple data transfer program to read from the raw text files and insert the data into sqlite (you just need to execute this program once)
- use sqlite for your lookup program, it will be much faster since database are designed for thing like that.

The second method is to split the files. For example, split the file by alphabet.
This post is by a banned member (marter14) - Unhide
marter14  
Registered
417
Posts
0
Threads
#5
Thanks

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)