File handling in C By Anand George.

Slides:



Advertisements
Similar presentations
Computer Vocabulary Words to know and remember for the semester.
Advertisements

TO A MEMORY STICK How to Save Lesson 1 – November 13, 2013 – Michelle Lowe.
What happens when you create an HTML document and include pictures.
P3- Represent how data flows around a computer system
Part 2: Manage app lifecycle and state (Windows Store apps using C#/VB and XAML) us/library/windows/apps/hh aspx
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
Computer Hardware.
Keyboarding Fall  Hardware is the parts of the computer that you can actually see and touch, such as…… Monitors Mouse Keyboard Ear phones Scanner.
11:15:01 Storage device. Computer memory Primary storage 11:15:01.
Did someone say Music? November 7, Adding MUSIC to a web page: 1. Find your music! 2. A good website is 3. You will.
Author Name Roosevelt University Author Name Roosevelt University Author Name Roosevelt University
Lecture # 3 HTML and Arrays. Today Questions: From notes/reading/life? From Lab # 2 – Preview of Lab # 2 1.Introduce: How do you make a Web Page?: HTML.
Microsoft ASP.net Session Samar Samy Microsoft Student Partner.
CP104 Introduction to Programming File I/O Lecture 33 __ 1 File Input/Output Text file and binary files File Input/output File input / output functions.
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
Lecture 06 – Reading and Writing Text Files.  At the end of this lecture, students should be able to:  Read text files  Write text files  Example.
Pascal Programming Files and Text (an intro). Pascal Programming Files... Data files need to be retained in secondary memory. The machine memory is random.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
Computer Basic Vocabulary
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit A Creating an HTML Document.
Mozilla. Why mozilla Main Components Browser features Loads very quickly Personal toolbar with your locations Can turn off pop-up windows good control.
Lecturer : 이선아  APM  Apache  PHP  MySQL.
AS Computing Hardware. Buffers and Interrupts A buffer is an area of memory used for holding data during input/output transfers to and from disk.
HTML HyperText Markup Language. Text Files An array of bytes stored on disk Each element of the array is a text character A text editor is a user program.
English and computing. Да Нет Question 1 Is a computer an electronic machine which can accept data and give the results of the processing in a format.
ME-2221 COMPUTER PROGRAMMING Lecture 18 FILE OPERATIONS Department of Mechanical Engineering A.H.M Fazle Elahi Khulna University of engineering & Technology.
By Anand George SourceLens.org Copyright. All rights reserved. Content Owner - Meera R (meera at sourcelens.org)
By Anand George SourceLens.org Copyright. All rights reserved. Content Owner - Meera R (meera at sourcelens.org)
Cloud Computing ILAS project DONE BY:. Table of content INTRODUCTION. ◦ Cloud computing in general ◦ What are the things that worked during the implementation.
HTML NOTES October 6, Starting a document and saving  Always use notepad  Use _ for spaces otherwise it won’t work  When saving make sure you.
Back to the Web Alice Wrap-Up. Update your Class Web Page  In the index.html change the “Client Sites” section to: Alice 1. Basics of Computer Programming/Introduction.
DATA MANAGEMENT 1) File StructureFile Structure 2) Physical OrganisationPhysical Organisation 3) Logical OrganisationLogical Organisation 4) File OrganisationFile.
C Programming Day 2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/LA07/003 Version No. 1.0 Union –mechanism to create user defined data types.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
The purpose of a CPU is to process data Custom written software is created for a user to meet exact purpose Off the shelf software is developed by a software.
Publish your presentations online we present SLIDEPLAYER.COM.
Cloud-Computing Cloud Web-Blog Software Application Download Software.
Topic 2: Hardware and Software
ZIMBRA DESKTOP USER MANUAL
Parts of a computer Vocabulary & Labeling.
Citation format 1 The “Citation” display option is similar to the abstract display but has some extra information such as MeSH terms and substances listed.
How to create a web page using word …
CGS 3066: Web Programming and Design Spring 2016
Updating and Maintaining Web Pages
Lecture: Protocols in Detail
CSCI 161: Introduction to Programming
Local secondary storage (local disks)
Intro to PHP & Variables
Intermediate 2 Computing Unit 1 – Computer Systems
08/28/06 parts of the computer.
Bon Secours Memorial College of Nursing
<?php require("header.htm"); ?>
Your title goes here. Template courtesy of MakeSigns.com
Working with images EIT, Author Gay Robertson, 2018.
Handles disk file 0000: array of file-offsets 0001: 0002: 0003: 0: …
Bon Secours Memorial College of Nursing
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Files Handling In today’s lesson we will look at:
HTML Text editors and adding graphics
Home page for CIS44..
Your title goes here. Template courtesy of MakeSigns.com
BO65: PROGRAMMING WRITING TO TEXT FILES.
IST346: Operating Systems / Command Line Interfaces
Structures in c By Anand George.
Your computer is the client
Publish your presentations online we present SLIDEPLAYER.ONLINE.
Functions By Anand George.
Did someone say Music? January 23, 2019.
Computer Electronic device Accepts data - input
08/28/06 parts of the computer.
Presentation transcript:

File handling in C By Anand George

What is a file? A piece of memory in secondary storage or disk. Will retain after reboot of computer or restart of the program. Memory or RAM won’t retain after program restart or reboot of computer. Secondary memory is slower than RAM.

Example A jpg file which is a picture. An html page which is a file in a web server. A download program is a nothing but a group of files, say Skype or gtalk or anything like that.

How to create and access file in C program? As for most of the other thing some library function. fopen – to open or create a file fread – read from the file to program memory ( variable ) fwrite – write to file from the contents of memory

Steps for reading Make a file using notepad. Open that file Read from the file Print the contents of the file. Close the file

Steps for writing Open an empty file Initialize a character array. Print the contents of the array ( which is memory ) to the file. Close the file Check the file using notepad if the program worked.

Demo Reading and writing to a file.

Student details program using files. A program to do the following Accept the number of students. Accept the details of above mentioned students. Details name, id address for each student. Save the entered details to a file. Another program to Read the file and display content.

Demo Student details program using files.

Thank you