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

3 visualizaciones (últimos 30 días)
Naor Movshovitz
Naor Movshovitz el 28 de Abr. de 2015
Comentada: Timo Korthals el 7 de Sept. de 2015
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 comentario
Timo Korthals
Timo Korthals el 7 de Sept. de 2015
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by