The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Skipping blank lines while reading a file
CharlesEF
post 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. sad.gif

Does anyone have a better idea?


Thanks for any and all help,

Charles
Attached File  read_file.php ( 467bytes ) Number of downloads: 397
Attached File  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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 03:27 AM