InterNACHI


Go Back   InterNACHI Inspection Forum > General Inspection Topics > Miscellaneous Discussion for Inspectors

Notices

Miscellaneous Discussion for Inspectors Discuss whatever you wish in this forum.

Reply
 
LinkBack Thread Tools
  #1  
Old 4/16/07, 7:24 PM
Michael R. Boyett's Avatar
Michael R. Boyett Michael R. Boyett is offline
InterNACHI Member
 
Join Date: Jul 2004
Location: Austin, TX
Posts: 4,722
Default Help merging .txt files

I have 50-60 .txt files I'd like to merge into one long .txt file. I know there are numerous utility programs available that can do this but the one's I've seen cost $25-$50. Since this is a one time need then I'm not real keen on spending anything to do it. Anyone aware of a free method of merging .txt files?
Reply With Quote
  #2  
Old 4/16/07, 7:27 PM
jwortham1 jwortham1 is offline
InterNACHI Member
 
Join Date: Jun 2006
Location: Bolingbrook, IL
Posts: 721
Default Re: Help merging .txt files

http://bluefive.pair.com/txtcollector.htm



Jeffrey Wortham
ANS Inspections, Inc.
www.ansinspections.com
630.276.8440
638 Langford Drive
Bolingbrook, IL 60440
NACHI ID:04050181
Reply With Quote
  #3  
Old 4/16/07, 7:37 PM
Michael Larson's Avatar
Michael Larson Michael Larson is offline
InterNACHI Member
 
Join Date: May 2006
Location: Hudson, WI including the Twin Cities of MN
Posts: 30,554
Default Re: Help merging .txt files

Here is free one.
------------------------

Merge multiple text files into one master file. This tool allows you to join many files into a single file. Use this tool instead of open each file and copy the content to paste it to one single file. LINK
Reply With Quote
  #4  
Old 4/16/07, 7:59 PM
Henry Valenzano, CMI's Avatar
Henry Valenzano, CMI Henry Valenzano, CMI is offline
InterNACHI Member
 
Join Date: Nov 2003
Location: Colorado Springs, CO
Posts: 1,555
Send a message via MSN to hvalenzano
Default Re: Help merging .txt files

Just open your note pad and copy them to one. Takes about 5 min.



Henry Valenzano CMI (Hank)
Double Check Home Inspection LLC.
www.DCHI.com Hank@DCHI.com 719-635-6425
Colorado Arms Repair : Gunsmith
www.ArmsRepair.com Henry@ArmsRepair.com
Reply With Quote
  #5  
Old 4/16/07, 9:27 PM
Michael R. Boyett's Avatar
Michael R. Boyett Michael R. Boyett is offline
InterNACHI Member
 
Join Date: Jul 2004
Location: Austin, TX
Posts: 4,722
Default Re: Help merging .txt files

Jeffrey...perfect! TXTCollector was just what I was looking for.
Michael, I also tried FileMerge but wasn't as successful with it. I'm sure it works just fine as well but it didn't want to work smoothly with my computer...oh well. I should have remembered the ZDNet site for utilities like this, I've even got it bookmarked and still didn't think to check there.
Henry, yeah I could have done it that way but heck that's why I have a computer...to do all those menial tasks.

Thanks guys..
Reply With Quote
  #6  
Old 4/17/07, 11:42 AM
Chris Morrell, CTO's Avatar
Chris Morrell, CTO Chris Morrell, CTO is offline
Director of IT
 
Join Date: Aug 2002
Location: Philadelphia, PA
Posts: 1,592
Send a message via ICQ to inxil Send a message via AIM to inxil Send a message via MSN to inxil Send a message via Yahoo to inxil
Default Re: Help merging .txt files

Here you go:
PHP Code:
$merged '';
$handle opendir('C:\Some Folder');
while (
false !== ($file readdir($handle)))
{
    if (
substr($file, -4) == '.txt')
    {
        
$merged $merged file_get_contents($file);
    }
}
closedir($handle);
$handle fopen('C:\Some Folder\merged.txt''w');
fwrite($handle$merged);
fclose($handle); 
Reply With Quote
  #7  
Old 4/17/07, 12:02 PM
Michael R. Boyett's Avatar
Michael R. Boyett Michael R. Boyett is offline
InterNACHI Member
 
Join Date: Jul 2004
Location: Austin, TX
Posts: 4,722
Default Re: Help merging .txt files

Cool...now if I just had an idea how to execute PHP code I'd be home free. I do know it doesn't work simply by pasting it to a command line prompt.
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chicago Area Homebuilder Files for Bankruptcy ldapkus Miscellaneous Discussion for Inspectors 1 10/23/07 10:26 AM
NACHI files response in US Court to Mallory's recent attacks for personal gain. gromicko Legislation, Licensing & Legal Issues for Inspectors 21 9/26/07 11:54 AM
American Home Files for Bankruptcy Protection jbushart Miscellaneous Discussion for Inspectors 1 8/6/07 3:52 PM
Square D Files Lawsuit to Prevent Counterfeiting jtedesco1 Electrical Inspections 2 5/26/06 7:36 PM


All times are GMT -4. The time now is 5:07 AM.


Popular Sections

:

All Sections

Inspection News

InterNACHI Membership

Inspection Standards

Inspection Education

InterNACHI Inspectors

Inspection Links

 

 

 

NACHI.ORG Statistics

 

 

no new posts