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

C#

 
AnswerRe: Threads / Class / Array Pin
SeMartens19-Jan-09 21:27
SeMartens19-Jan-09 21:27 
QuestionHow create professional docu? Pin
Frygreen19-Jan-09 8:49
Frygreen19-Jan-09 8:49 
AnswerRe: How create professional docu? Pin
Eddy Vluggen19-Jan-09 9:07
professionalEddy Vluggen19-Jan-09 9:07 
AnswerRe: How create professional docu? Pin
Colin Angus Mackay19-Jan-09 10:27
Colin Angus Mackay19-Jan-09 10:27 
AnswerRe: How create professional docu? Pin
Not Active19-Jan-09 10:33
mentorNot Active19-Jan-09 10:33 
AnswerRe: How create professional docu? Pin
Frygreen20-Jan-09 8:05
Frygreen20-Jan-09 8:05 
Questionread byte[] from file, save byte[] in new file, different size Pin
arturw8219-Jan-09 8:22
arturw8219-Jan-09 8:22 
AnswerRe: read byte[] from file, save byte[] in new file, different size Pin
Jimmanuel19-Jan-09 9:46
Jimmanuel19-Jan-09 9:46 
In this snippet
if (bytesRead > 0)
{
    outStream.Write(buffer, 0, buffer.Length);
    inputStream.BeginRead(buffer, 0, buffer.Length, new AsyncCallback(OnCompletedRead), null);
}

what if bytesRead is less than buffer.Length? Wouldn't you be writing more bytes to the file than you read?



P.S. use PRE tags around code to preserve formatting





GeneralRe: read byte[] from file, save byte[] in new file, different size Pin
arturw8219-Jan-09 10:01
arturw8219-Jan-09 10:01 
GeneralRe: read byte[] from file, save byte[] in new file, different size Pin
Jimmanuel19-Jan-09 10:25
Jimmanuel19-Jan-09 10:25 
GeneralRe: read byte[] from file, save byte[] in new file, different size Pin
arturw8220-Jan-09 6:23
arturw8220-Jan-09 6:23 
GeneralRe: read byte[] from file, save byte[] in new file, different size Pin
Jimmanuel20-Jan-09 7:12
Jimmanuel20-Jan-09 7:12 
QuestionProgramming Web In C# Pin
trinm198719-Jan-09 7:45
trinm198719-Jan-09 7:45 
AnswerRe: Programming Web In C# Pin
EliottA19-Jan-09 9:28
EliottA19-Jan-09 9:28 
AnswerCP IGNORE USER...THIRD time he's posted this. Pin
leckey19-Jan-09 10:20
leckey19-Jan-09 10:20 
QuestionPrint Start event Pin
spiritboy19-Jan-09 7:30
spiritboy19-Jan-09 7:30 
QuestionDeveloping a small DBMS software tool Pin
Calma19-Jan-09 7:27
Calma19-Jan-09 7:27 
AnswerRe: Developing a small DBMS software tool Pin
spiritboy19-Jan-09 7:39
spiritboy19-Jan-09 7:39 
GeneralRe: Developing a small DBMS software tool Pin
spiritboy19-Jan-09 7:46
spiritboy19-Jan-09 7:46 
AnswerRe: Developing a small DBMS software tool Pin
Wendelius19-Jan-09 8:34
mentorWendelius19-Jan-09 8:34 
QuestionArray of account data Pin
ferronrsmith19-Jan-09 7:01
ferronrsmith19-Jan-09 7:01 
AnswerRe: Array of account data Pin
Not Active19-Jan-09 7:03
mentorNot Active19-Jan-09 7:03 
GeneralRe: Array of account data Pin
ferronrsmith19-Jan-09 7:11
ferronrsmith19-Jan-09 7:11 
GeneralRe: Array of account data Pin
Not Active19-Jan-09 7:37
mentorNot Active19-Jan-09 7:37 
GeneralRe: Array of account data Pin
ferronrsmith19-Jan-09 8:53
ferronrsmith19-Jan-09 8:53 

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.