Header Ads Widget

Responsive Advertisement

Socialize

Labels

Ads

Powered by Blogger.

dashboard dashboard ...

Post Top Ad

LightBlog

Search This Blog

Post Top Ad

Your Ad Spot

Archive

Post Top Ad

Your Ad Spot

Author Details

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.

Material

Breaking

Subscribe Us

Ad Space

Responsive Advertisement

Music

Send Quick Message

Name

Email *

Message *

Translate

Ad Banner

Recent News

Mseducation material

C language

 C Notes 

Files


In C programming, file is a place on your physical disk where information is stored.

Why files are needed?


When a program is terminated, the entire data is last. Storing in a file will preserve your data even if the program terminates. If you have to enter a large number of data, it will take a lot of time to enter them all. However, if you have a file containing all the data, you can easily access the contents of the file using few commands in C.


You can easily move your data from one computer to another without any changes,


Types of Files


When dealing with files, there are two types of files you should know about:


1. Text files 2. Binary files


Text files are the normal txt files that you can easily create using Notepad or any simple text editors. When you open those files, you'll see all the contents within the file as plain text. You can easily edit or delete the contents.

They take minimum effort to maintain, are easily readable, and provide least security and takes bigger storage space.

2. Binary files

Binary files are mostly the .bin files in your computer. Instead of storing data in plain text, they store it in the binary form (O's and I's).

They can hold higher amount of datą, are not readable easily and provides a better security than text files.


File Operations

In C. you can perform four major operations on the file, either text or binary:


1. Creating a new file 2. Opening an existing file 3. Closing a file. Opening an existing file 3. Closing a file







C language other important notes uploaded soon



1 comment:

  1. Your posts are very useful for me,tq.please fast upload all posts.

    ReplyDelete