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

조회 수: 2 (최근 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 CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by