Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2007, 03:34 AM
WSOP2007 WSOP2007 is offline
Member
 
Join Date: May 2006
Posts: 68
Default software needed : Reward $50

To get the reward you don't necessarily need to write the program, a link with proper instructions that does the trick is also fine.

I'd like to see a program that merges the txt files in map A with the txt files with the same name in map B automatically, so it can do thousands without clicking. So for example file A contains "monkey" and file B contains "donkey" I want a file created with contents "monkey donkey". This must also be possible for files with different extensions than .txt. I know it's very simple for good programmers, but it would help me alot with poker. Thanks!


If it works the reward wil transfered by FTP, stars or neteller

edit: also it must not copy the same lines twice in the new file
Reply With Quote
  #2  
Old 08-09-2007, 04:17 AM
butcha butcha is offline
Member
 
Join Date: Jun 2007
Posts: 67
Default Re: software needed : Reward $50

Hey WSOP
Here is a very simple Ahk script that does the trick:

<font class="small">Code:</font><hr /><pre>#NoEnv
#SingleInstance, Force

DirA := "C:\Some folder 1"
DirB := "C:\Some folder 2"
Ext := "*.txt"
OutDir := "C:\Output folder"


loop, %DirA%\%Ext%
{
if ( FileExist(DirB . "\" . A_LoopFileName) )
{
FileRead, text1, %DirA%\%A_LoopFileName%
FileRead, text2, %DirB%\%A_LoopFileName%

FileAppend, %text1% %text2%, %OutDir%\%A_LoopFileName%
}
}
</pre><hr />

You can download AutohotKey from here:
http://www.autohotkey.com/download/A...keyInstall.exe


[ QUOTE ]
also it must not copy the same lines twice in the new file

[/ QUOTE ]
Do you mean that if File A and File B contains the same text the resulting file will only contain this text once?


/butcha
Reply With Quote
  #3  
Old 08-09-2007, 08:55 AM
WSOP2007 WSOP2007 is offline
Member
 
Join Date: May 2006
Posts: 68
Default Re: software needed : Reward $50


Nice work this is it. Only if text A has the same line as text B it copies the line twice to the output folder. I only need it once. Also it has to copy the header and the closing lines only once. This is what I want:



File A to merge:
&lt;player-note screenName="lemonstre13"&gt;
&lt;strength&gt;4&lt;/strength&gt;&lt;color&gt;4&lt;/color&gt;&lt;comment&gt;

monkey
dog


&lt;/comment&gt;
&lt;/player-note&gt;




File B to merge:
&lt;player-note screenName="lemonstre13"&gt;
&lt;strength&gt;4&lt;/strength&gt;&lt;color&gt;4&lt;/color&gt;&lt;comment&gt;


monkey
donkey
sheep


&lt;/comment&gt;
&lt;/player-note&gt;




Outcome file:
&lt;player-note screenName="lemonstre13"&gt;
&lt;strength&gt;4&lt;/strength&gt;&lt;color&gt;4&lt;/color&gt;&lt;comment&gt;


monkey
donkey
dog
sheep


&lt;/comment&gt;
&lt;/player-note&gt;




If you can add this just PM me how you want to receive the payment.
Reply With Quote
  #4  
Old 08-09-2007, 09:15 AM
resboard resboard is offline
Senior Member
 
Join Date: Sep 2006
Location: Philadelphia
Posts: 336
Default Re: software needed : Reward $50

As a programmer (i'm at work and no time to do this). Your original post really does not in anyway detail what you wanted. Your last post does. Are all your files going to have player notes in this structure? This might be more than a $50 project. mabye more $100-$150. As a note to help people willing to do this for you, describe everything you can about the project. You really are not looking to merge files per say, really just merge notes (atleast from the example), which involves reading and comparing tons of lines. Good luck.
Reply With Quote
  #5  
Old 08-09-2007, 12:31 PM
WSOP2007 WSOP2007 is offline
Member
 
Join Date: May 2006
Posts: 68
Default Re: software needed : Reward $50

Resboared you are correct, I should have said this earlier, but only now I see that it doesn't work I have no other choice then to ask for the adjustment. To answer your question, yes all notes have the same structure.
Reply With Quote
  #6  
Old 08-09-2007, 01:09 PM
butcha butcha is offline
Member
 
Join Date: Jun 2007
Posts: 67
Default Re: software needed : Reward $50

[ QUOTE ]
Resboared you are correct, I should have said this earlier, but only now I see that it doesn't work I have no other choice then to ask for the adjustment. To answer your question, yes all notes have the same structure.

[/ QUOTE ]
Did you miss my PM?
I have sent you a new version.

/butcha
Reply With Quote
  #7  
Old 08-09-2007, 02:36 PM
WSOP2007 WSOP2007 is offline
Member
 
Join Date: May 2006
Posts: 68
Default Re: software needed : Reward $50

wow excellent work man! thanks your the best butcha!
Reply With Quote
Reply


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 -4. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.