Therefore, each field is composed of sequence of bytes. Here are the sample code for reading and writing sequential files. In data hierarchy, a file usually contains a number of records. A record contains a number of fields. Each field is composed of characters.
Computers manipulate characters in terms of bits.
Therefore, each field is composed of sequence of bytes. Each record is read from the input file until there are no more records in the file. Data can also be written to an outputFile. Here are the sample code for reading a sequential files. Here are the sample code for reading and writing sequential files.