Selasa, 18 Desember 2018

File Processing

       Text file saved in a text format or ASCII File:
      –Storage size depends on its data: 10000 needs 5 byte
      –Can be open using standard text editor application
      –or c:>TYPE file_name
       A binary file is a file whose content must be interpreted by a program or a hardware processor that       
       understands in advance exactly how it is formatted. That is, the file is not in any externally 
       identifiable format so that any program that wanted to could look for certain data at a certain 
p     place within the file. A progam (or hardware processor) has to know exactly how the data inside the 
       file is laid out to make use of the file.
       Possible mode value :
       Mode        Description
        “r”  opening a file to be read.
       “w”  creating a file to be written.
       “a”  opening a File for data append.
       “r+”  opening a File for read/write.  
       “w+”  creating file for read/write.
       “a+”  opening a File for read/append
      “rb”    opening a File (binary) to be read.
      “wb”  creating a file (binary) for write operation.


Tidak ada komentar:

Posting Komentar