[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading file
From: |
Andreas Weber |
Subject: |
Re: Reading file |
Date: |
Thu, 22 Dec 2016 19:32:30 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
Am 22.12.2016 um 16:21 schrieb Delgon:
> fid = fopen(Filename,'r');
> if fid > 0
> L = '';
> while ischar(L),
> L = fgets(fid);
> if ischar(L),
> T = [T; L];
> end
> end
> end
Why dont you use something like
T = char (fread (fid))';
I think this will do what you want and is much much faster.
-- Andy
- Reading file, Delgon, 2016/12/22
- Re: Reading file,
Andreas Weber <=