Can webread(url) be used to read a file?

3 ビュー (過去 30 日間)
Naor Movshovitz
Naor Movshovitz 2015 年 4 月 28 日
コメント済み: Timo Korthals 2015 年 9 月 7 日
url = 'file:///c:/filename';
raw = webread(url);
fails complaining that the <file://> protocol is not supported. Can it be true? Why wouldn't it be supported? I know the url is correct because
raw = urlread(url);
works as expected (but returns an unwieldy string).
  1 件のコメント
Timo Korthals
Timo Korthals 2015 年 9 月 7 日
Have you dug into the function? At one point the webread function just downloads the content and pass it to the function readContentFromFile(...). Maybe you can just work with this.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by