Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCompare Two Text Files Pin
vijay248212-May-09 4:47
vijay248212-May-09 4:47 
AnswerRe: Compare Two Text Files Pin
David Mujica12-May-09 5:20
David Mujica12-May-09 5:20 
GeneralRe: Compare Two Text Files Pin
vijay248212-May-09 21:33
vijay248212-May-09 21:33 
AnswerRe: Compare Two Text Files Pin
riced12-May-09 7:34
riced12-May-09 7:34 
GeneralRe: Compare Two Text Files Pin
vijay248212-May-09 21:31
vijay248212-May-09 21:31 
GeneralRe: Compare Two Text Files Pin
riced12-May-09 23:10
riced12-May-09 23:10 
GeneralMessage Closed Pin
13-May-09 0:15
vijay248213-May-09 0:15 
GeneralRe: Compare Two Text Files Pin
riced13-May-09 2:23
riced13-May-09 2:23 
When you finish scanning the copy file you always need to output a line.
I still think there's a problem not showing up in your test data.
Suppose I have a file where the 5th and 10th lines match with the 10th having a later date. When the 5th line of the input is being processed, it will match the 10th line in the copy and the 10th line will be output. What happens when the 10th line of the input file is being processed? How do you know it's already been written out?

You seem to have introduced a new requirement. Namely, always write out lines that begin with '01' even when there are matching ones.
Try this as a test. Copy first 5 lines of above input, paste them into the file, somewhere in middle of file will do, and change the dates of the pasted lines to e.g. 27/04/2009. Do you get correct output?

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralRe: Compare Two Text Files Pin
vijay248213-May-09 2:44
vijay248213-May-09 2:44 
GeneralRe: Compare Two Text Files Pin
riced13-May-09 3:33
riced13-May-09 3:33 
Questionproblem with backup of data base Pin
nazimghori12-May-09 2:45
nazimghori12-May-09 2:45 
AnswerRe: problem with backup of data base Pin
Rajesh Anuhya12-May-09 3:06
professionalRajesh Anuhya12-May-09 3:06 
QuestionRe: problem with backup of data base Pin
nazimghori12-May-09 5:00
nazimghori12-May-09 5:00 
AnswerRe: problem with backup of data base Pin
EliottA12-May-09 5:12
EliottA12-May-09 5:12 
AnswerRe: problem with backup of data base Pin
Zaegra12-May-09 7:46
Zaegra12-May-09 7:46 
QuestionRe: problem with backup of data base Pin
nazimghori12-May-09 8:26
nazimghori12-May-09 8:26 
AnswerRe: problem with backup of data base Pin
EliottA12-May-09 8:30
EliottA12-May-09 8:30 
AnswerRe: problem with backup of data base Pin
Zaegra12-May-09 8:44
Zaegra12-May-09 8:44 
AnswerRe: problem with backup of data base Pin
DidiKunz12-May-09 21:22
DidiKunz12-May-09 21:22 
QuestionHow to change Regional language setting date format to dd/MM/yyyy ? Pin
Paramu197312-May-09 2:01
Paramu197312-May-09 2:01 
AnswerRe: How to change Regional language setting date format to dd/MM/yyyy ? Pin
Johan Hakkesteegt12-May-09 2:22
Johan Hakkesteegt12-May-09 2:22 
AnswerRe: How to change Regional language setting date format to dd/MM/yyyy ? Pin
Dave Kreskowiak12-May-09 4:42
mveDave Kreskowiak12-May-09 4:42 
QuestionFolder path Pin
rmedo12-May-09 0:28
rmedo12-May-09 0:28 
AnswerRe: Folder path Pin
Christian Graus12-May-09 1:18
protectorChristian Graus12-May-09 1:18 
GeneralRe: Folder path Pin
rmedo12-May-09 2:29
rmedo12-May-09 2:29 

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.