Click here to Skip to main content
15,922,407 members
Home / Discussions / C#
   

C#

 
GeneralRe: enums Pin
Gilbert Consellado9-Jan-15 13:07
professionalGilbert Consellado9-Jan-15 13:07 
AnswerRe: enums Pin
BillWoodruff9-Jan-15 15:08
professionalBillWoodruff9-Jan-15 15:08 
GeneralRe: enums Pin
Gilbert Consellado9-Jan-15 16:34
professionalGilbert Consellado9-Jan-15 16:34 
Questionlogin from read file.txt Pin
techker26-Jan-15 12:27
techker26-Jan-15 12:27 
AnswerRe: login from read file.txt Pin
Dave Kreskowiak6-Jan-15 14:03
mveDave Kreskowiak6-Jan-15 14:03 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 14:29
techker26-Jan-15 14:29 
GeneralRe: login from read file.txt Pin
Richard Andrew x646-Jan-15 15:28
professionalRichard Andrew x646-Jan-15 15:28 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 15:57
techker26-Jan-15 15:57 
GeneralRe: login from read file.txt Pin
Pete O'Hanlon6-Jan-15 16:03
mvePete O'Hanlon6-Jan-15 16:03 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 16:57
techker26-Jan-15 16:57 
GeneralRe: login from read file.txt Pin
Pete O'Hanlon6-Jan-15 18:04
mvePete O'Hanlon6-Jan-15 18:04 
GeneralRe: login from read file.txt Pin
techker27-Jan-15 0:13
techker27-Jan-15 0:13 
GeneralRe: login from read file.txt Pin
Dave Kreskowiak7-Jan-15 2:21
mveDave Kreskowiak7-Jan-15 2:21 
GeneralRe: login from read file.txt Pin
techker27-Jan-15 2:28
techker27-Jan-15 2:28 
GeneralRe: login from read file.txt Pin
Dave Kreskowiak7-Jan-15 2:35
mveDave Kreskowiak7-Jan-15 2:35 
GeneralRe: login from read file.txt Pin
techker27-Jan-15 3:05
techker27-Jan-15 3:05 
GeneralRe: login from read file.txt Pin
Dave Kreskowiak7-Jan-15 3:42
mveDave Kreskowiak7-Jan-15 3:42 
GeneralRe: login from read file.txt Pin
techker27-Jan-15 4:01
techker27-Jan-15 4:01 
AnswerRe: login from read file.txt Pin
Pete O'Hanlon7-Jan-15 1:02
mvePete O'Hanlon7-Jan-15 1:02 
As we don't know what format your file is, I'm going to have to make some assumptions here. The first assumption is that the file is organised with one pin per line. Assuming this is true, then you can use File.ReadAllLines to read the files into an array - from there, if I were you, I'd probably load these records into a HashSet for speed of record retrieval. Here, I have to assume that you know what a HashSet is, and how to work with it. Finally, write a simple method that accepts a PIN, and looks in this HashSet to see if the file PIN is present.
AnswerRe: login from read file.txt Pin
roya.irani26-Jan-15 22:40
roya.irani26-Jan-15 22:40 
QuestionChecking values in 3 tables Pin
jim123456789jim6-Jan-15 3:44
jim123456789jim6-Jan-15 3:44 
AnswerRe: Checking values in 3 tables Pin
OriginalGriff6-Jan-15 4:08
mveOriginalGriff6-Jan-15 4:08 
AnswerRe: Checking values in 3 tables Pin
Chris Quinn6-Jan-15 4:25
Chris Quinn6-Jan-15 4:25 
QuestionHas anyone every seen this before? The logic doesnt make sense Pin
Member 113371085-Jan-15 18:39
Member 113371085-Jan-15 18:39 
AnswerRe: Has anyone every seen this before? The logic doesnt make sense Pin
Dominic Burford5-Jan-15 18:48
professionalDominic Burford5-Jan-15 18:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.