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

C#

 
QuestionHelp Provider Pin
kwinko10-Feb-14 19:13
kwinko10-Feb-14 19:13 
AnswerRe: Help Provider Pin
OriginalGriff10-Feb-14 20:37
mveOriginalGriff10-Feb-14 20:37 
QuestionWhat is the purpose of a .edmx file? Pin
Xarzu10-Feb-14 14:40
Xarzu10-Feb-14 14:40 
AnswerRe: What is the purpose of a .edmx file? Pin
Snehasish_Nandy10-Feb-14 18:39
professionalSnehasish_Nandy10-Feb-14 18:39 
AnswerRe: What is the purpose of a .edmx file? Pin
Nicholas Marty10-Feb-14 21:38
professionalNicholas Marty10-Feb-14 21:38 
QuestionReading and writing USB HID FeatureReports async. Pin
BigBenDk10-Feb-14 5:34
BigBenDk10-Feb-14 5:34 
AnswerRe: Reading and writing USB HID FeatureReports async. Pin
Jason Gleim10-Feb-14 9:22
professionalJason Gleim10-Feb-14 9:22 
GeneralRe: Reading and writing USB HID FeatureReports async. Pin
BigBenDk10-Feb-14 10:26
BigBenDk10-Feb-14 10:26 
GeneralRe: Reading and writing USB HID FeatureReports async. Pin
Jason Gleim10-Feb-14 10:38
professionalJason Gleim10-Feb-14 10:38 
AnswerRe: Reading and writing USB HID FeatureReports async. Pin
Bernhard Hiller10-Feb-14 21:21
Bernhard Hiller10-Feb-14 21:21 
QuestionSOAP from scratch? Pin
Antessima10-Feb-14 4:41
Antessima10-Feb-14 4:41 
AnswerRe: SOAP from scratch? Pin
jschell10-Feb-14 8:11
jschell10-Feb-14 8:11 
GeneralRe: SOAP from scratch? Pin
Antessima10-Feb-14 8:42
Antessima10-Feb-14 8:42 
GeneralRe: SOAP from scratch? Pin
jschell11-Feb-14 11:04
jschell11-Feb-14 11:04 
QuestionReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 4:39
computerpublic10-Feb-14 4:39 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 5:30
mveRichard Deeming10-Feb-14 5:30 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 5:45
computerpublic10-Feb-14 5:45 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 5:56
mveRichard Deeming10-Feb-14 5:56 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 6:27
computerpublic10-Feb-14 6:27 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 6:54
mveRichard Deeming10-Feb-14 6:54 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
Matt T Heffron10-Feb-14 7:47
professionalMatt T Heffron10-Feb-14 7:47 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
BillWoodruff10-Feb-14 21:23
professionalBillWoodruff10-Feb-14 21:23 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
BillWoodruff10-Feb-14 6:37
professionalBillWoodruff10-Feb-14 6:37 
I can't understand what you are trying to do here:

1. you get a Directory, and then you iterate over all its files setting a variable to the current file length: which means the value of 'Totbyte is always going to be equal to the length of the last file read.

Did you mean to make a total of the length of all files ? in which case you should have: Totbyte += ap.Length; ?

2. then you create two temporary files, and check if one of them exists, and read its bytes into a byte[], which makes no sense, since the temp file will have no content.

Isn't it the case that the file (files ?) you want to read have something to do with the first part of your code, where you create an array of files from a Directory path ?
“But I don't want to go among mad people,” Alice remarked.

“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”

“How do you know I'm mad?” said Alice.

“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll

GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 6:51
computerpublic10-Feb-14 6:51 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Dave Kreskowiak10-Feb-14 7:14
mveDave Kreskowiak10-Feb-14 7:14 

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.