Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Has anyone every seen this before? The logic doesnt make sense Pin
Member 113371086-Jan-15 6:25
Member 113371086-Jan-15 6:25 
GeneralRe: Has anyone every seen this before? The logic doesnt make sense Pin
BillWoodruff6-Jan-15 6:33
professionalBillWoodruff6-Jan-15 6:33 
AnswerRe: Has anyone every seen this before? The logic doesnt make sense Pin
V.5-Jan-15 20:26
professionalV.5-Jan-15 20:26 
GeneralRe: Has anyone every seen this before? The logic doesnt make sense Pin
Member 113371086-Jan-15 6:35
Member 113371086-Jan-15 6:35 
GeneralRe: Has anyone every seen this before? The logic doesnt make sense Pin
V.6-Jan-15 6:40
professionalV.6-Jan-15 6:40 
Question32-bit process calling Marshal.GetExceptionPointers. Pin
LLAKW5-Jan-15 9:03
LLAKW5-Jan-15 9:03 
Question[EDIT] System.AccessViolationException in Windows 8.1 Pin
Django_Untaken5-Jan-15 6:13
Django_Untaken5-Jan-15 6:13 
GeneralRe: System.AccessViolationException in Windows 8.1 Pin
PIEBALDconsult5-Jan-15 6:23
mvePIEBALDconsult5-Jan-15 6:23 
AnswerRe: System.AccessViolationException in Windows 8.1 Pin
Richard MacCutchan5-Jan-15 7:02
mveRichard MacCutchan5-Jan-15 7:02 
AnswerRe: System.AccessViolationException in Windows 8.1 Pin
Dave Kreskowiak5-Jan-15 7:06
mveDave Kreskowiak5-Jan-15 7:06 
AnswerRe: System.AccessViolationException in Windows 8.1 Pin
jschell5-Jan-15 9:25
jschell5-Jan-15 9:25 

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.