什么是文件c语言_什么是文件?

什么是文件c语言

什么是文件c语言

A File is an object which contains data for different purposes and types like information, image, video, configuration, database, etc. The file is the one of the most important components of the operating systems.

File是一个对象,其中包含用于不同目的和类型的数据,例如信息,图像,视频,配置,数据库等。文件是操作系统最重要的组成部分之一。

文件内容 (File Contents)

All data in a system is store inside the files. So files can store different types of data in different formats. A file may contain simple text to binary image data to database server data. Below are some of the most used and stored file contents.

系统中的所有数据都存储在文件内部。 因此,文件可以以不同的格式存储不同类型的数据。 文件可以包含简单的文本,以将二进制图像数据转换为数据库服务器数据。 以下是一些最常使用和存储的文件内容。

  • Text

    文本
  • Document

    文件
  • Presentation

    介绍
  • Database

    数据库
  • Video

    视频
  • Image

    图片
  • Configuration

    组态
  • Temporary Data

    临时数据
  • Executable

    可执行的
  • Library

    图书馆
  • Device Driver

    设备驱动

文件命名( File Naming )

Files are named in different named related to their data and purpose. The file named is important because their names make them unique and easy to access. File names can use alphanumeric characters but there are some restrictions set by operating and file systems. These restrictions are set for preventing crashes.

文件的命名与文件的数据和用途相关。 命名的文件很重要,因为它们的名称使它们唯一且易于访问。 文件名可以使用字母数字字符,但是操作系统和文件系统设置了一些限制。 设置这些限制是为了防止崩溃。

  • Windows XP FAT32 file system file named can not use "/\*?<>|: and the maximum file can be 255 characters.

    Windows XP FAT32文件系统文件名称不能使用"/\*?<>|: ,并且最大文件数可以为255个字符。

  • Windows 7, Windows 8 and Windows 10 NTFS file system file named can not use "/\*?<>|: and the maximum file can be 256 characters.

    Windows 7,Windows 8和Windows 10 NTFS文件系统文件的名称不能使用"/\*?<>|: ,并且最大文件数可以为256个字符。

  • MacOS X HFS+/UFS file system file named can not use : and the maximum file can be 255 characters.

    名为MacOS X HFS+/UFS文件系统文件不能使用: ,最大文件数为255个字符。

  • Linux ext4 file system file named can not use NUL byte and the maximum file does not have character length restriction.

    Linux ext4文件系统文件名为,不能使用NUL byte ,并且最大文件没有字符长度限制。

文件类型和扩展名 (File Types and Extensions)

Files are stored with some extensions too with their names in order to specify the type of the data and format they contain. Below you can find some popular file types with their extensions and usage types.

文件还带有一些扩展名及其名称,以便指定它们包含的数据类型和格式。 在下面,您可以找到一些流行的文件类型及其扩展名和使用类型。

  • .txt is Text File Format which stores simple unformatted text.

    .txt是文本文件格式,用于存储简单的未格式化文本。

  • .exe is Executable File Format which instructions to execute and run the application.

    .exe是可执行文件格式,用于执行和运行应用程序的指令。

  • .dll is Dynamic Library which data and libraries to provide executable.

    .dll是动态库,该数据和库提供可执行文件。

  • .doc and .docx are Word File Formats which store the formatted and styled document and text content with images.

    .doc.docx是Word文件格式,用于存储格式化和样式化的文档以及带有图像的文本内容。

  • .pdf is a Portable Document File Format which documents in a portable format.

    .pdf是可移植文档文件格式,以可移植格式进行文档记录。

  • .png is an image format mainly used in Linux systems and the web.

    .png是主要用于Linux系统和Web的图像格式。

  • .jpeg or .jpg are file formats to store an image in Windows and the web

    .jpeg.jpg是用于在Windows和Web中存储图像的文件格式

  • .ppt is a PowerPoint Presentation File Format which stores presentations.

    .ppt是一种PowerPoint演示文稿文件格式,用于存储演示文稿。

LEARN MORE  How To Find and List Large Files and Directories In Linux?
了解更多如何在Linux中查找和列出大文件和目录?

文件管理 (File Management)

Files can be managed by different tools and applications according to their formats and usage. For example, a pdf file can be viewer by different applications like Google Chrome, Adobe PDF Reader, Foxit PDF Reader, etc. but in order to edit some special applications like Adobe DC Premium can be required. If we just want to copy a pdf file the OS file browser or explorer can be used without any extra tool.

可以根据文件的格式和用途使用不同的工具和应用程序管理文件。 例如,可以通过不同的应用程序(例如Google Chrome,Adobe PDF Reader,Foxit PDF Reader等)查看pdf文件,但是为了编辑某些特殊的应用程序(例如Adobe DC Premium),可能需要查看该文件。 如果我们只想复制pdf文件,则可以使用OS文件浏览器或资源管理器,而无需任何其他工具。

Windows File Explorer
Windows文件资源管理器

Windows File Explorer is a very popular tool that is provided by Windows operating systems. It has file-related features like Copy,Paste ,Delete ,Rename ,Create ShortCut , Show Properties etc.

Windows File Explorer是Windows操作系统提供的一种非常流行的工具。 它具有与文件相关的功能,例如CopyPasteDeleteRenameCreate ShortCutShow Properties等。

Windows File Explorer Menu
Windows文件资源管理器菜单

文件工具和应用程序(File Tools and Applications)

Even operating systems provide built-in tools and applications to manage files there are some useful 3rd party tools for file management. These 3rd party file management tools provide extra and interesting and easy features to manage files.

即使操作系统提供了内置工具和应用程序来管理文件,也存在一些有用的第三方工具来进行文件管理。 这些第三方文件管理工具提供了额外,有趣且简单的功能来管理文件。

  • XYplorer

    XYplorer
  • Directory Opus

    目录作品
  • fman

  • Free Commander

    自由指挥官
  • Explorer++

    资源管理器++
  • Altap Salamander

    阿尔塔普Sal
  • Tag Spaces

    标签空间

文件属性和属性(File Properties and Attributes)

Files have some properties which provide information about them. Here are some properties which are useful to get more detailed information about a file.

文件具有一些提供有关它们的信息的属性。 这是一些属性,可用于获取有关文件的更多详细信息。

Name is the most generic property which shows the complete name of the file without hiding extension etc.

Name是最通用的属性,它显示文件的完整名称而不隐藏扩展名等。

Location is the path where the file is stored and found.

Location是存储和找到文件的路径。

Type of file is the file type which is also related to the File Extension .

Type of file是文件类型这也涉及到File Extension

Size is the storage area the file takes. According to the size files can be categorized as a little or big files.

Size是文件占用的存储区域。 根据大小,文件可以分为小文件或大文件。

Created is the time when the file is first created.

Created时间是首次创建文件的时间。

LEARN MORE  How To Remove Files Older Than 1 Day/1 Week/1 Month Recursively
了解更多信息如何以递归方式删除早于1天/ 1周/ 1个月的文件

Modified is the time when the file last time modified or changed.

Modified时间是文件上次修改或更改的时间。

Accessed is the time when the file is accessed.

Accessed时间是访问文件的时间。

Read-only attribute set the file as read-only and can be changed or edited or updated but can be viewed or accessed.

Read-only属性将文件设置为只读,可以更改,编辑或更新文件,但可以查看或访问。

Hidden attribute will hide the file from the user but can be used by specifying the complete path.

Hidden属性将向用户隐藏文件,但可以通过指定完整路径来使用。

File Properties and Attributes
文件属性和属性

文件存储介质(File Storage Mediums)

Files can be stored in different platforms on different storage mediums with different formats. Let’s list some of the popular file storage mediums.

文件可以以不同格式存储在不同平台上的不同存储介质上。 让我们列出一些流行的文件存储介质。

System HDD is the most popular way to store a file where stored inside the user’s home directory.

System HDD是最流行的存储文件的方式,该文件存储在用户的主目录中。

Flash USB Drive is another popular file storage medium were used to move or transfer files to another system physically. Flash USB Drives are plug and plug which makes them practical and fast.

Flash USB Drive是另一种流行的文件存储介质,用于物理上将文件移动或传输到另一个系统。 闪存USB驱动器是即插即用的,这使它们实用且快速。

Cloud Systems are recent popular storage medium for our files. Cloud systems run on data centers on remote locations where files are copied or sync via the internet.

Cloud Systems是最近流行的文件存储介质。 云系统在远程位置的数据中心上运行,这些位置通过Internet复制或同步文件。

CD-ROM is an old and slow way to store files with a limited storage area. Currently, they are replaced with Flash USB Drives.

CD-ROM是一种存储空间有限的文件的古老而缓慢的方法。 当前,它们已替换为闪存USB驱动器。

Floppy Disk is older than CD-ROM and usage is very very low in modern-day.

Floppy Disk比CD-ROM早,并且在现代使用率非常低。

翻译自: https://www.poftut.com/what-is-a-file/

什么是文件c语言

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值