Ceng 351 Lab1 Introduction to File Structures. Input Output Functions in C In C there is not any predefined commands for data transfer. – C functions.

Slides:



Advertisements
Similar presentations
James Tam Introduction To Files In Python In this section of notes you will learn how to read from and write to files in your programs.
Advertisements

MCT260-Operating Systems I Operating Systems I Using Text Editors.
An Introduction to Programming with C++ Fifth Edition Chapter 13 Sequential Access Files.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Programming Assignment #4 Binary Trees
Web Page Development Identify elements of a Web Page Start Notepad
Chapter 8: I/O Streams and Data Files. In this chapter, you will learn about: – I/O file stream objects and functions – Reading and writing character-based.
Ceng 351 Lab2. Appending to A File To continue on a pre-created file, it is required to open a file with a(append) mode – fopen(“filename","a"); – Code.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
 At the end of this class, students are able to  Describe definition of input devices clearly  List out the examples of input devices  Describe.
Chapter 8 Printing 1. In COBOL you send data to the printer by writing data to a file. In COBOL, the printer is defined as a file, and it is opened, closed,
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Topics Introduction Hardware and Software How Computers Store Data
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
RjpSystem Level Programming Operating Systems 1 Having fun withy the Unix Operating System Praxis Week 7 Rob Pooley.
Files COP3275 – PROGRAMMING USING C DIEGO J. RIVERA-GUTIERREZ.
Introduction to Computers
Introduction to MS Office Computer Essentials PowerPoint.
IT Essentials Module 1 Review for Test. Hard Drives Know the three common types of interfaces  SCSII  IDE  SATA  Number of devices/controller for.
Lecture Set 12 Sequential Files and Structures Part C – Reading and Writing Binary Files.
Programming Concept Chapter I Introduction to Java Programming.
Input & Output In Java. Input & Output It is very complicated for a computer to show how information is processed. Although a computer is very good at.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
Data files and databases. Need a control to browse to a file Standard controls for drive folder and list not much use The CommonDialogs control offers.
CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
Introduction to Programming Instructor: Yong Tang Brookhaven National Laboratory Working on accelerator control (BNL Phone #)
1 EndNote X2 Your Bibliographic Management Tool 29 September 2009 Humanities and Social Sciences Resource Teams.
Chapter 14: Files and Streams. 2Microsoft Visual C# 2012, Fifth Edition Files and the File and Directory Classes Temporary storage – Usually called computer.
Hard Drives aka Hard Disk Drives Internal, External, and New Solid State Drives.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
From Vision to Video Clip in Three Easy Sessions: An Introduction to Video Recording and Editing at HGSE January Term Session Dates January 14 – 10-12PM.
CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2.
1 Suprtool High Speed Database Extract for HP 3K/9K Training Workbook Copyright Robelle Solutions Technology Inc.
MGS 351 Introduction to Management Information Systems Recitation 4.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
1 COMS 261 Computer Science I Title: Functions Date: October 24, 2005 Lecture Number: 22.
Chapter 11 File Systems and Directories. 2 File Systems (Chapter 11.1) File: 1. A named collection of related data. 2.smallest amount of information that.
ME-2221 COMPUTER PROGRAMMING Lecture 18 FILE OPERATIONS Department of Mechanical Engineering A.H.M Fazle Elahi Khulna University of engineering & Technology.
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
Chapter – 8 Software Tools.
Java Programming, Second Edition Chapter Sixteen File Input and Output.
INFO 1103 Database System – Group Project. Project evaluation Deliverables – 10% Presentation – 40% Project Report – 50%
Computer Programming II Lecture 9. Files Processing - We have been using the iostream standard library, which provides cin and cout methods for reading.
Hex Editing using HxD Nick Fogal & Lindsay Shaffer.
Introduction to Computers
BASIC PROGRAMMING C SCP1103 (02)
Topics Introduction Hardware and Software How Computers Store Data
BASIC PROGRAMMING C SCP1103 (02)
Net 323 D: Networks Protocols
CHAPTER 4 Memory System Organization and Architecture
Introduction to Computers
The Computer Work Stations
Computer Science I CSC 135.
JAVA IO.
IO Overview CSCE 121 J. Michael Moore
OBJECT ORIENTED PROGRAMMING II GEORGE KOUTSOGIANNAKIS
OBJECT ORIENTED PROGRAMMING II GEORGE KOUTSOGIANNAKIS
Topics Introduction Hardware and Software How Computers Store Data
Net 323 D: Networks Protocols
Introduction to computers
Input and Output with FILES
EndNote What is EndNote? EndNote Library, how to manage?
CS150 Introduction to Computer Science 1
Introduction to Computer Systems
Lab 3: File Permissions.
Presentation transcript:

Ceng 351 Lab1 Introduction to File Structures

Input Output Functions in C In C there is not any predefined commands for data transfer. – C functions is required

Input Output Functions in C Three groups of C I/O functions are available – ANSI C: Buffered file system, high level I/O system, formatted I/O system – Unix like I/O system. Unbuffered or unformatted – Rather than operating system, low-level I/O functions It is expected that all ANSI C functions works on the all C compilers

Stream and File A Program written in C Stream File Stream is a set full of characters No information about how characters are settled File is generally a byte set It could be a text document, a database record, an image… Stream and file relation is created with the opening a file

Stream and File Stream and File Types; – Text Transformation of characters could be required from stream to file – Exp: ‘\n’ in file it could turn to Carriage Return-CR or Line Feed-LF in file – Binary What is in the stream written into the file

File Operations in C Example Code Lab1.cpp

Lab Homework Programming exercise; – Create a file (car.dat) similar to our personnel file that keeps information of the cars. A car has a record number, plate, brand (fiat), model (punto), color and owner name and surname information. You should have to create at least 10 car records – In a given file users could be able to call the records according to record number and update any of the information(bonus) – You have to send your code and the file with a StudentID_Name_Surname_Lab1.zip Studying exercise; – Prepare a one page report related with the evaluation of the discs starting with 70s. Compare technological evaluation especially considering with size, speed and price. – Prepare a one page report related with the terms PATA, SATA, e-SATA, USB standards and Firewire. – Prepare a one page report to compare Solid State Discs, Tape Drives and Hard Disc Drives. Total number of pages shall not exceed three. You can add your reports to the same zip file

Lab Homework Due Date: – For Section 1, October 10, Monday 12 PM – For Section 2, October 11, Friday 12 PM – For Section 3, October 12, Saturday 12 PM