Difference Between Text Files and Binary Files?




FORMATTED TEXT FILES

BINARY FILES
A)
Stores information in English format

A)
Stores info. in ASCII format
B)
Supports sequential access

B)
Support random access
C)
Variable length records.

C)
Fixed length record
D)
‘fscaf()’ is used to read the file contents.

D)
‘fread()’ is used to read the file contents
E)
Temporary to modify ( or) to delete a record in the file
E)
Temporary file is used to delete a record only


Related

What is a Variable? How to Declare and Assign values to Variables?

Variable: Variable is a named memory location that can store some value unlike constants a Variable may take different values at different times during execution. A ...

Explain Different Data Types Available in ‘C’?

C language supports a rich set of data types the variety of data types available allow the programmer to select the type appropriate to the needs of the application. ANSI C support...

Write about Symbolic Constants (or) #define statement

The constants which will be used in number of places in a program can be defined using # define statement. Ex:    #define PI 3.14          #define...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item