Home  >  Article  >  What is the format of the source file?

What is the format of the source file?

小老鼠
小老鼠Original
2024-05-09 22:51:181149browse

Source files are uncompiled files containing original code or data, and the format varies between different programming languages ​​and applications. Common formats include text files (.txt, .csv), programming languages ​​(such as .py, .java), markup languages ​​(such as .html, .css), image files (such as .png, .jpg), video files (such as .mp4, .avi), and other formats such as JSON (.json), PDF (.pdf), Word document (.doc), etc.

What is the format of the source file?

What is the format of the source file?

Source files refer to uncompiled files containing original code or data. Different types of programming languages ​​and applications use different source file formats. The following are common source file formats:

Text file:

  • .txt: Universal text file that can contain any type of text.
  • .csv: Comma separated values ​​file, used to store tabular data.

Programming language:

  • .py: Python source file
  • .java :Java source file
  • .c:C language source file
  • .cpp:C source file
  • .js: JavaScript source file

Markup language:

  • .html: Hypertext Markup language (HTML) Source file
  • .css: Cascading Style Sheet (CSS) Source file
  • .xml: Extensible Markup Language ( XML) Source file

Image file:

  • .png:Portable network graphics file
  • .jpg: Joint Photographic Experts Group file
  • .bmp:Bitmap file

Video file:

  • .mp4:MPEG-4 video file
  • .avi:Audio video interlaced file
  • .mov: Quick time file

Others:

  • ##.json:JSON (JavaScript object representation French) File
  • .pdf: Portable Document Format File
  • .doc: Microsoft Word Document File
The choice of source file format depends on the requirements of the specific application or programming language. A common practice is to store source files as text files and compile them into an executable or other format when needed.

The above is the detailed content of What is the format of the source file?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn