Document Content Architecture
Developed by | IBM |
---|---|
Type of format | Document file format |
Extended to | MO:DCA |
Document Content Architecture, or DCA for short, is a standard developed by IBM for text documents in the early 1980s. DCA was used on mainframe and IBM i systems, and formed the basis of DisplayWrite's file format. DCA was later extended as MO:DCA (Mixed Object Document Content Architecture), which added embedded data files.
The original purpose of DCA was to provide a common document format that could be used across multiple IBM word processing platforms, such as the IBM PC, IBM mainframes, the Displaywriter System, and the IBM 5520 Administrative System.[1]
DCA defines two types of documents:[2][3]
- Revisable-Form Text (DCA/RFT) which is editable.
- Final-Form Text (DCA/FFT) which is "formatted for a particular output device and cannot be changed."
Файл удирдлагын get file attributes системийн дуудалт B31
From Wikipedia, the free encyclopedia Файл удирдлагын утга (файлын атрибутууд) системийн дуудалттай хувьсагчийг унших, харах, өөрчлөх боломжтой. Програмын хэлний хамгийн чухал хэрэгсэл нь операцион систем дээр ашигладаг кодыг ашиглана. Дараах жишээ нь Windows дээр PowerShell ашиглан файлын удирдлагыг унших, харах жишээ юм.
powershell Copy code
PowerShell ашиглан файлын удирдлагыг унших жишээ $file = Get-Item -Path "C:\YourFilePath\YourFile.txt"
Файлын бүх атрибутуудыг харах $file.Attributes
Заавар харуулах $file.Attributes.ToString() Энэ кодыг PowerShell-ийн командын мөр болгон ажиллуулж болно. Get-Item команд нь файлын удирдлагыг унших хувьсагч болон файлын мэдээллийг авч болох боломж олгодог. Файлын бүх атрибутуудыг харахын тулд $file.Attributes хувьсагчийг ашиглана. Дараа нь, атрибутуудыг тодорхойлж харахын тулд ToString() функцыг ашиглахыг харуулах болно.
Энэ PowerShell код нь файлын атрибутыг уншиж харах ажил хийдэг ба файлын байршлыг өөрчлөх, атрибутыг шинэчлэх гэх мэт үйлдэл хийх зорилготой байгаа юм.'Bold text' Жишээ код:
include <stdio.h> include <sys/stat.h> include <stdlib.h> int main() {
struct stat file_stat; const char* file_path = "path_to_your_file"; if (stat(file_path, &file_stat) == 0) { printf("File Size: %lld bytes\n", (long long)file_stat.st_size); printf("File Permissions: %o\n", file_stat.st_mode & 07777); // You can access other attributes using file_stat structure members. // For example, file_stat.st_mtime gives the modification time. } else { perror("stat"); return 1; } return 0;
}
See also
- Advanced Function Presentation
- Rich Text Format (RTF) – another formatting code system that is sometimes confused with Revisable-Form Text.
- List of document markup languages
References
- ^ Henkel, Tom (21 May 1984), "IBM taking the standardization route to DPP", Computerworld, vol. 18, no. 21, IDG Enterprise, p. 7, ISSN 0010-4841
- ^ "PC Magazine Encyclopedia". Retrieved July 25, 2012.
- ^ de la Beaujardière, Jean Marie (1988). "Well-established document interchange formats". Document Manipulation and Typography: Proceedings of the International Conference on Electronic Publishing, Document Manipulation and Typography, Nice (France) April 20-22 1988. CUP Archive. p. 83. ISBN 978-0-521-36294-8.