-
File is a
collection of record
-
Record is a
collection of field
-
Field is a block
of byte
-
Byte is
collection of bit
Stream
Defination:
To keep key in data from keyboard need to be saved at secondary storage
device as a data file.
So
without any further do lets take a look to the main part of this blog
Creating File:
So in order to use a algorithm for file i will give a
screenshot of my work
If you want to create a
file you also need something like lets say a database.but i will create that
databse in .txt to make it ez, but you cant make the database in any
diffrent type of file as long it supporting to create a text but i suggest you
to create the file in .txt
As you can see at my first screenshot. In that syntax
there is ‘w’,’r’
So i will explain that below:
“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.
These are command to do with the .txt file
Albert TG/2201736385/LB04
#Binusian2022

No comments:
Post a Comment