Skipping blank lines while reading a file |
Skipping blank lines while reading a file |
CharlesEF |
Nov 11 2020, 06:18 PM
Post
#1
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Hi All,
Sounds simple, right? Well, I find that it turns out not to be. Nothing I've tried has worked. So, maybe someone else has a better idea. The attached sample file is part of a bigger file generated by Excel 2016. It is formatted as UTF-16 LE but I re-save it as UTF-8. The goal of the script is to print only non blank lines but I can't get it to work. Does anyone have a better idea? Thanks for any and all help, Charles read_file.php ( 467bytes ) Number of downloads: 397 sample.txt ( 16.75k ) Number of downloads: 383 I had to rename sample.sql to sample.txt in order to upload it. You will either have to change it back or change the script. |
Lo-Fi Version | Time is now: 26th April 2024 - 03:27 AM |