Satas you are correct. Those files are not initialized because I pasted in old code in which I was using a list rather than an array
All the fwrites are actually using the array elements created with explode(...)
Unfortunately, both ways produce the spaces in the strings
ronverdonk - your solution would work if I didn't have spaces in some of the strings that I want to keep...
Thanks for...
User Profile
Collapse
-
Thanks for the replies.
Here's the code
Code:// File to copy from $fSourcePath = "HCFD-SM.xml"; $fSourceHandle = fopen($fSourcePath, 'r'); //File to copy to $fTargetPath = "test.txt"; $fTargetHandle = fopen($fTargetPath, 'w'); //MP3Tag file $fMP3Source = "mp3tag.csv"; $fMP3Handle = fopen($fMP3Source, 'r');
Leave a comment:
-
Explode inserts spaces between each character in string
I'm filling an array with explode(";" $linetoread) and then using the array to write to a file. When I open the file the array elements have spaces between each character. I've tried split as well with the same results. If viewed in a browser, all the spaces are missing even though they exist in the source.
No activity results to display
Show More
Leave a comment: