Go Back   CodingForums.com > Web Projects and Services Marketplace > Web Projects > Medium projects (new script, new features, etc)

Notices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-20-2012, 01:47 AM   PM User | #1
JobNeedsDone
New to the CF scene

 
Join Date: May 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
JobNeedsDone can only hope to improve
Need script/program [Paying!]

Hi guys,

I've came to a problem, I have my members details in two .txt files.

1.txt and 2.txt

1.txt containing there name and 2.txt containing there address.

Each line in the txt file ends with there 13 digit membership number.

So what I've been doing is copying the membership number from 1.txt and searching 2.txt to match the name to the correct address.

I need some sort of script in which i can paste all membership numbers 1 per line and combine the lines together. For example:

I list the membership numbers.
I load 1.txt and 2.txt

123456789 being the first membership number to process.

Joe Soap 123456789 is found in 1.txt
11 Bubble Bath Lane 12356789 is found in 2.txt

Output.txt -> Joe Soap 123456789 11 Bubble Bath Lane 12356789


If anyone has the idea of what i need done here and your capable of doing it, im willing to pay for this sort of script.

It doesnt need to be in java.

I can't do this manually since there is thousands.

Please reply with your skype/msn/messenger if you can do this we will talk about a price.
JobNeedsDone is offline   Reply With Quote
Old 05-20-2012, 02:35 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,542
Thanks: 62
Thanked 4,054 Times in 4,023 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Well, the *RIGHT* answer is to stop using text files! That might have been an okay answer when you had a handful of members, but once you got to even 100 or so it was past time to start using a database.

And that means writing server-side code: PHP or ASP or JSP.

You *can* do this with text files on the server and using JavaScript, but it's a really bad solution. It's also very very insecure, because anybody with a JavaScript debugger (which means anyone with a browser!) can intercept your data and read your ENTIRE membership list, with addresses. How do you think your members would feel about you exposing their name and address to the ENTIRE WORLD?

If I found you were doing this, I might be tempted to sue you for breach of privacy.

With a server-side solution, you still might show member's addresses to other members, but at least you'd be able to ensure that *ONLY* members can see the data. You have no such protection in an all HTML/JavaScript system.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 05-20-2012, 07:49 AM   PM User | #3
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,098
Thanks: 197
Thanked 2,421 Times in 2,399 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Quote:
Originally Posted by JobNeedsDone View Post
It doesnt need to be in java.
This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names. Rather like Austria and Australia!
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 05-21-2012, 06:32 PM   PM User | #4
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 595
Thanks: 1
Thanked 20 Times in 20 Posts
jalarie is an unknown quantity at this point
Do you need this merge to be done every time someone references your data, or do you need those files merged once and you would then use that single result file each time?

If you wish to maintain those two base files separately forever, the only good answer is a database. If you wish to merge them once and then use that result, the best answer still might be a database, but done much differently.

PM me and we'll talk.
__________________
Visit my site at http://spruce.flint.umich.edu/~jalarie/.
jalarie is offline   Reply With Quote
Old 05-22-2012, 05:07 AM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Looks like they got what they wanted already in this thread.

http://www.codingforums.com/showthre...05#post1231105

Curious to see if the person who gave them the code gets paid.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:05 AM.


Advertisement
Log in to turn off these ads.