Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: How to remove unwanted text from a .txt file?
Date: Tue, 23 Sep 2008 22:35:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 4
Message-ID: <gbbqun$qo5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1222209303 27397 172.30.248.37 (23 Sep 2008 22:35:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 23 Sep 2008 22:35:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1248302
Xref: news.mathworks.com comp.soft-sys.matlab:491656


HI,
I work with .txt files that receive streaming data which is set up in uniform fields format. However, whenever there is a connection problem the program sends a 3 or 4 line message to the text fil regarding data not available! How can I programmatically remove those unwanted lines from the file without having to manually open it first?

thanks