Click here to Skip to main content
15,908,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# program structuring problem - Run in background - Teach a noob to do it properly :P Pin
samskiter19-Feb-09 6:57
samskiter19-Feb-09 6:57 
Questionhow to drag and drop image in c#.net & how to resize it after drop the image? Pin
poonam jagdale19-Feb-09 2:32
poonam jagdale19-Feb-09 2:32 
AnswerRe: how to drag and drop image in c#.net & how to resize it after drop the image? Pin
Calin Tatar19-Feb-09 2:37
Calin Tatar19-Feb-09 2:37 
QuestionMin (110) must be less than or equal to max (-1) in a Range object. Pin
Priya Prk19-Feb-09 2:01
Priya Prk19-Feb-09 2:01 
GeneralRe: Min (110) must be less than or equal to max (-1) in a Range object. Pin
Luc Pattyn19-Feb-09 2:13
sitebuilderLuc Pattyn19-Feb-09 2:13 
AnswerRe: Min (110) must be less than or equal to max (-1) in a Range object. Pin
michal.drozdowicz23-Mar-09 5:03
michal.drozdowicz23-Mar-09 5:03 
QuestionCompare two .DAT file using C# Pin
Member 322226419-Feb-09 1:52
Member 322226419-Feb-09 1:52 
AnswerRe: Compare two .DAT file using C# Pin
Luc Pattyn19-Feb-09 2:20
sitebuilderLuc Pattyn19-Feb-09 2:20 
Hi,

That is a lot of code already, without much being achieved.

You do not really have to test for identical files, same length, etc; if the data comparison is present and correct, that would generate the right result anyway; checking for identical files and same length, are optimisations that initially will make your testing more difficult. I suggest you concentrate on the heart of the matter first.

You probably don't need FileStreams at all.
Assuming both files are text files, you could use File.ReadAllLines() twice, then sort both arrays, and compare the two arrays.
Assuming the lines are in a fixed order (maybe the filenames are ordered alphabetically) you could even just use File.ReadAllText().

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


Questioncreating a setup file Pin
aratireddy19-Feb-09 1:26
aratireddy19-Feb-09 1:26 
AnswerRe: creating a setup file Pin
Ramkithepower19-Feb-09 1:38
Ramkithepower19-Feb-09 1:38 
GeneralRe: creating a setup file Pin
Calin Tatar19-Feb-09 1:52
Calin Tatar19-Feb-09 1:52 
AnswerRe: creating a setup file Pin
Nuri Ismail19-Feb-09 2:20
Nuri Ismail19-Feb-09 2:20 
QuestionReading specific no if bytes from an UDP datagram [modified] Pin
M. J. Jaya Chitra19-Feb-09 0:51
M. J. Jaya Chitra19-Feb-09 0:51 
QuestionRead lines in PDF file Pin
abbd19-Feb-09 0:24
abbd19-Feb-09 0:24 
AnswerRe: Read lines in PDF file Pin
Deresen19-Feb-09 1:01
Deresen19-Feb-09 1:01 
GeneralRe: Read lines in PDF file Pin
abbd19-Feb-09 1:22
abbd19-Feb-09 1:22 
GeneralRe: Read lines in PDF file Pin
Pete O'Hanlon19-Feb-09 1:47
mvePete O'Hanlon19-Feb-09 1:47 
QuestionWeather Forecast webservice Pin
ranandbe19-Feb-09 0:11
ranandbe19-Feb-09 0:11 
AnswerRe: Weather Forecast webservice Pin
Eddy Vluggen19-Feb-09 0:43
professionalEddy Vluggen19-Feb-09 0:43 
QuestionVisual Studio Setup project !!! Is it just another kind of Wizard? Pin
Nadia Monalisa18-Feb-09 23:16
Nadia Monalisa18-Feb-09 23:16 
AnswerRe: Visual Studio Setup project !!! Is it just another kind of Wizard? Pin
Calin Tatar18-Feb-09 23:29
Calin Tatar18-Feb-09 23:29 
AnswerRe: Visual Studio Setup project !!! Is it just another kind of Wizard? Pin
Nuri Ismail18-Feb-09 23:32
Nuri Ismail18-Feb-09 23:32 
Questionthread splach screen !!! Pin
mrcooll18-Feb-09 23:03
mrcooll18-Feb-09 23:03 
QuestionAuto Login Pin
Member 299896918-Feb-09 21:39
Member 299896918-Feb-09 21:39 
AnswerRe: Auto Login Pin
musefan18-Feb-09 22:18
musefan18-Feb-09 22:18 

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.