![]() |
A tool that can do this?
hey everyone,
say i have 2 files.. ONE TEXT FILE HAS THIS: a b c d e f g other FILE HAS THIS: 1 2 3 4 5 6 7 and i want to merge it, so that its a1 b2 c3 d4 e5 f6 g7 any ideas? |
Microsoft Access
|
tried it.. keep getting space inbetween
(if i use excel and put in diff columns then paste into notepad_ |
It can also be done in MS Excel or Lotus 1-2-3 (IBM).
|
Assuming both files have the same number of lines..
Code:
$f1 = file( "file1" ); |
PHP to the rescue
Code:
$file1 = @file("letters.txt"); |
My way is better ... lol
|
this code will work?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Hell.. don't even need a tool to do that. Just use a text editor (eg UltraEdit) in column mode and past the two columns into the one text file and delete all spaces.
|
fukin geeks
|
Quote:
Array ( ) nothing else |
Quote:
2. Count the array items FIRST, not within your for loop |
well none of the codes posted here work.... unfortunately
|
Using the code posted earlier as a start:
Code:
<?php testfile 1 at http://sigamatic.com/newtest/testfile1.txt testfile 2 at http://sigamatic.com/newtest/testfile2.txt Ouptut file at http://sigamatic.com/newtest/testfile3.txt Have fun :) |
Quote:
|
Excel: Put each list in two separate columns (A, B), then in column C use the formula
=concatenate(A1,B1) Copy/paste the formula all the way down and you're done. (you can then copy/paste into notepad without the spaces). --- OR --- Notepad: if you copy/paste the two columns and end up with the spaces, like you mentioned, simple find & replace all instances of " " with "" and the spaces are gone. --- People are making this way too difficult. |
try modelperfect's advise on he concatenate...that shoudl certainly work.
|
All times are GMT -7. The time now is 12:31 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123