Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I optimize this code [modified] Pin
fly90415-May-09 2:18
fly90415-May-09 2:18 
AnswerRe: How can I optimize this code Pin
Luc Pattyn15-May-09 3:16
sitebuilderLuc Pattyn15-May-09 3:16 
GeneralRe: How can I optimize this code Pin
Nagy Vilmos15-May-09 3:57
professionalNagy Vilmos15-May-09 3:57 
GeneralRe: How can I optimize this code Pin
Luc Pattyn15-May-09 4:02
sitebuilderLuc Pattyn15-May-09 4:02 
GeneralRe: How can I optimize this code Pin
Nagy Vilmos15-May-09 4:09
professionalNagy Vilmos15-May-09 4:09 
GeneralRe: How can I optimize this code Pin
Luc Pattyn15-May-09 4:23
sitebuilderLuc Pattyn15-May-09 4:23 
GeneralRe: How can I optimize this code Pin
Nagy Vilmos15-May-09 4:27
professionalNagy Vilmos15-May-09 4:27 
GeneralRe: How can I optimize this code Pin
MumbleB15-May-09 23:28
MumbleB15-May-09 23:28 
HI Luc. I could post a few lines for you but they are pretty much what I posted in my orriginal post. What I think I want to achieve is read the first ID in FILE1 take that and search for it in FILE2, if found then replace the ID in FILE2 with the ID alongside the one in FILE1. So, File1 has the following data in it:
<br />
C0000000001   C0001000010<br />
C0000000002   C0001000011<br />
C0000000003   C0001000012<br />

FILE2 contains the following data:
<br />
C0000000001N1            SAMPLE NAME 1<br />
C0000000002N5            SAMPLE NAME 2<br />
C0000000123D2            SAMPLE NAME 3<br />
C0000000003N4            SAMPLE NAME 4<br />

Now, FILE1 has approximately 2000 lines of data and FILE2 has approximately 80000 lines of data in it. So in short, take C0000000001 from FILE1 and search through 80000 lines of data and for each instance found replace it with the Value C0001000010 + the remainder of the data in FILE2 on the line and write that to a new file.

Hope this makes sense.

Excellence is doing ordinary things extraordinarily well.

GeneralRe: How can I optimize this code Pin
Luc Pattyn16-May-09 1:08
sitebuilderLuc Pattyn16-May-09 1:08 
GeneralRe: How can I optimize this code Pin
MumbleB16-May-09 5:55
MumbleB16-May-09 5:55 
GeneralRe: How can I optimize this code Pin
Luc Pattyn16-May-09 6:54
sitebuilderLuc Pattyn16-May-09 6:54 
GeneralRe: How can I optimize this code Pin
MumbleB17-May-09 22:32
MumbleB17-May-09 22:32 
GeneralRe: How can I optimize this code Pin
Luc Pattyn18-May-09 0:37
sitebuilderLuc Pattyn18-May-09 0:37 
GeneralRe: How can I optimize this code Pin
MumbleB18-May-09 7:11
MumbleB18-May-09 7:11 
GeneralRe: How can I optimize this code Pin
Luc Pattyn18-May-09 7:30
sitebuilderLuc Pattyn18-May-09 7:30 
GeneralRe: How can I optimize this code Pin
MumbleB18-May-09 20:17
MumbleB18-May-09 20:17 
AnswerRe: How can I optimize this code Pin
Henry Minute15-May-09 4:18
Henry Minute15-May-09 4:18 
QuestionWeb setup project fails in Windows vista and IIS7 Pin
Muhammad Sohaib Yousaf15-May-09 1:44
Muhammad Sohaib Yousaf15-May-09 1:44 
QuestionAccepting user input Pin
Rajdeep.NET is BACK15-May-09 1:15
Rajdeep.NET is BACK15-May-09 1:15 
AnswerRe: Accepting user input PinPopular
Pete O'Hanlon15-May-09 1:21
mvePete O'Hanlon15-May-09 1:21 
GeneralRe: Accepting user input Pin
Rajdeep.NET is BACK15-May-09 2:19
Rajdeep.NET is BACK15-May-09 2:19 
GeneralRe: Accepting user input Pin
Tom Deketelaere15-May-09 2:28
professionalTom Deketelaere15-May-09 2:28 
GeneralRe: Accepting user input Pin
Rajdeep.NET is BACK15-May-09 2:37
Rajdeep.NET is BACK15-May-09 2:37 
GeneralRe: Accepting user input Pin
Tom Deketelaere15-May-09 2:47
professionalTom Deketelaere15-May-09 2:47 
GeneralRe: Accepting user input Pin
Rajdeep.NET is BACK15-May-09 2:58
Rajdeep.NET is BACK15-May-09 2:58 

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.