0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

拡張子をどのように認識して処理しているのか

Posted at

コンピューターはファイルの拡張子を使用して、ファイルの種類を識別し、それに応じた処理を行う

  • ファイル名の解析
    ファイル名から拡張子を切り出す

  • 拡張子のマッピング
    拡張子を特定のファイル形式やファイルの種類に関連付けるために、拡張子と対応するファイルの処理方法をマッピングしている
    →このマッピングは、オペレーティングシステムやアプリケーションによって管理される

  • 関連アプリケーションの起動
    拡張子に関連付けられたアプリケーションを起動して、ファイルを処理

EX).txtファイルはテキストエディタで開かれ、.jpgファイルは画像ビューアで開かれるようになっている

  • ファイルのバイナリ解析
    一部で、拡張子だけではファイルの種類を正確に判断できないことがある
    その場合、コンピューターはファイルの先頭などのバイナリデータを解析して、正しいファイル形式を判断する
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?