![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Nov 2005
Posts: 37
Rep Power: 0
![]() |
can someone make a program for me?
i dont care what programming language, but i need a program that checks every line in one text file with every line in another text file starting from a certain line on both. so that would make the line for each text file a user input thing and the text file itself would be user input with help of the "browse..." button that i see all the time.
will someone plz program that for me? |
|
|
|
|
|
#2 | |
|
Professional Programmer
|
Correct me if im wrong, but shouldn't you be posting here?
Job Offers BTW, ill see if i can do it.. it will be a console program though so you would input text to the console, if you dont mind of course.. but its free so you wont mind will you?
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Nov 2005
Posts: 37
Rep Power: 0
![]() |
>.> i dont know lol so i guess i dont mind
thank you for your help |
|
|
|
|
|
#4 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Nov 2005
Posts: 37
Rep Power: 0
![]() |
well you know if you download hosts files, and say you download it from different sources
you dont want the new hosts file to overwrite all the lines from the other files so i want a program that takes the first host file (and i'd be saving both as txt files to save the programmer time) and takes say the first line scans it with the second text file, all lines to see if it is there, and then if it is not there it would add it to the second text file and im on windows xp |
|
|
|
|
|
#6 |
|
Programmer
Join Date: Nov 2005
Posts: 37
Rep Power: 0
![]() |
can that be done?
|
|
|
|
|
|
#7 | |
|
Professional Programmer
|
im thinking about how it could be done, but im only about 3 weeks into programming so i dont know if its do-able in my position and with the knowledge i have. What im thinking about doing is letting you input the specific text to look for in one file, then it will compare it to another file (you will be asked the 2 files to compare) but i first have to find out how its possible to search using C++.. might take a little while because im also trying to finish something right now.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#8 |
|
Programmer
Join Date: Nov 2005
Posts: 37
Rep Power: 0
![]() |
well see if u have it so that its one specific line of text that u input into the program
then i have to compare ... more than 100 lines every time >.> a hosts file is also in alphabetic order so if i compared it manually it would prolly go faster... edit: sry if its too hard u can take ur time in making it since i myself cant do it |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Why the hell don't you just sort and merge the two files, shucking duplicates as you go. And get the hell into the Job Offers forum where you belong. It isn't real hard to figure out what the title of that forum means.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 |
|
Professional Programmer
|
sort file1 file2 | uniq > merged |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|