Why do I get .txt extension eventhough it isn’t?

1 回表示 (過去 30 日間)
madhan ravi
madhan ravi 2019 年 5 月 15 日
コメント済み: madhan ravi 2019 年 5 月 15 日
Whenever I download a .mat file from this forum I get .txt extension appended at the ended. Why is it so ?
  6 件のコメント
Rik
Rik 2019 年 5 月 15 日
@Jan, for me installing Matlab after Office did the trick, since it is a file association issue (or it was in my case). This assumption made it very confusing when someone wanted to link Matlab with Access to read actual Access files.
madhan ravi
madhan ravi 2019 年 5 月 15 日
@Rik: It was working fine until yesterday.

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

採用された回答

Guillaume
Guillaume 2019 年 5 月 15 日
編集済み: Guillaume 2019 年 5 月 15 日
That reminds me that's something I wantedto discuss with Mathworks as it's indeed annoying.
The reason has nothing to do with your OS or your file association. The behaviour will depend entirely on your browser but ultimately it's a defect in the way Answers serves these mat file.
The mat files are served with a content-type of text/plain. So, stricly speaking a browser that download these files should consider them as text files. Firefox does this and since the website tells it that the file is text, it adds a txt extension to the file. Other browsers may ignore the content-type and save it as is. Really, Answers should send this file with the correct Content-Type.
I'll try to get them to fix that.
  1 件のコメント
madhan ravi
madhan ravi 2019 年 5 月 15 日
? Guru, merci.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by