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

C#

 
AnswerRe: How to verify Two files Pin
Mark Churchill13-Oct-08 0:00
Mark Churchill13-Oct-08 0:00 
GeneralRe: How to verify Two files Pin
sumit703413-Oct-08 0:58
sumit703413-Oct-08 0:58 
GeneralRe: How to verify Two files Pin
Guffa13-Oct-08 1:25
Guffa13-Oct-08 1:25 
GeneralRe: How to verify Two files Pin
Mark Churchill13-Oct-08 1:31
Mark Churchill13-Oct-08 1:31 
AnswerCross Post Pin
Thomas Stockwell13-Oct-08 2:08
professionalThomas Stockwell13-Oct-08 2:08 
GeneralRe: Cross Post Pin
Pete O'Hanlon13-Oct-08 2:59
mvePete O'Hanlon13-Oct-08 2:59 
GeneralRepeat comment Pin
Guffa13-Oct-08 3:15
Guffa13-Oct-08 3:15 
AnswerRe: How to verify Two files(problem solved) Pin
sumit703416-Oct-08 0:27
sumit703416-Oct-08 0:27 
public bool CompareFiles(string sourceFile, string destinationFile)
{
try
{
//Open our files for reading
Stream _sourceFile = File.OpenRead(sourceFile);
Stream _destinationFile = File.OpenRead(destinationFile);
//Create a new instance of one of the MD5 classes
MD5CryptoServiceProvider MD5Alg = new MD5CryptoServiceProvider();
//We will use the ComputeHash method to get our hash values of each file
byte[] SourceFileHash = MD5Alg.ComputeHash(_sourceFile);
byte[] DestinationFileHash = MD5Alg.ComputeHash(_destinationFile);
//Done reading so close the files
_sourceFile.Close();
_destinationFile.Close();
//Where going to use the BitConverter and convert the hash values into a string for a quick,
//down and dirty compare.
string SourceFileHashKey = BitConverter.ToString(SourceFileHash);
string DestinationFileHashKey = BitConverter.ToString(DestinationFileHash);
//Return the match
return (SourceFileHashKey == DestinationFileHashKey);
}
Questionget folder alias from exchange Pin
panim2512-Oct-08 23:14
panim2512-Oct-08 23:14 
Questionweb reference issue Pin
George_George12-Oct-08 21:54
George_George12-Oct-08 21:54 
AnswerRe: web reference issue Pin
Guffa12-Oct-08 23:12
Guffa12-Oct-08 23:12 
GeneralRe: web reference issue Pin
George_George13-Oct-08 0:56
George_George13-Oct-08 0:56 
GeneralRe: web reference issue Pin
N a v a n e e t h13-Oct-08 2:24
N a v a n e e t h13-Oct-08 2:24 
GeneralRe: web reference issue Pin
George_George13-Oct-08 3:29
George_George13-Oct-08 3:29 
GeneralRe: web reference issue Pin
N a v a n e e t h13-Oct-08 3:37
N a v a n e e t h13-Oct-08 3:37 
GeneralRe: web reference issue Pin
George_George13-Oct-08 3:49
George_George13-Oct-08 3:49 
GeneralRe: web reference issue Pin
bcozican13-Oct-08 3:39
bcozican13-Oct-08 3:39 
GeneralRe: web reference issue Pin
George_George13-Oct-08 3:50
George_George13-Oct-08 3:50 
GeneralRe: web reference issue Pin
bcozican13-Oct-08 4:01
bcozican13-Oct-08 4:01 
GeneralRe: web reference issue Pin
George_George13-Oct-08 4:07
George_George13-Oct-08 4:07 
Question'using' keyword question Pin
Programm3r12-Oct-08 20:44
Programm3r12-Oct-08 20:44 
AnswerRe: 'using' keyword question Pin
Giorgi Dalakishvili12-Oct-08 21:01
mentorGiorgi Dalakishvili12-Oct-08 21:01 
GeneralRe: 'using' keyword question Pin
Programm3r12-Oct-08 21:14
Programm3r12-Oct-08 21:14 
GeneralRe: 'using' keyword question Pin
Giorgi Dalakishvili12-Oct-08 21:20
mentorGiorgi Dalakishvili12-Oct-08 21:20 
AnswerRe: 'using' keyword question Pin
Ashfield12-Oct-08 21:01
Ashfield12-Oct-08 21:01 

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.