CSCI 3327 Visual Basic Chapter 11: Files and Streams

Slides:



Advertisements
Similar presentations
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 24.1 Test-Driving the Ticket Information Application.
Advertisements

Files & Streams. Files Introduction Files are used for long-term retention of large amounts of data, even after the program that created the data terminates.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
Using Multiple Forms. Creating a New Form ProjectAdd Windows Form.
Chapter 6: Using VB.NET Supplied Classes Visual Basic.NET Programming: From Problem Analysis to Program Design.
MIS316 – BUSINESS APPLICATION DEVELOPMENT – Chapter 14 – Files and Streams 1Microsoft Visual C# 2012, Fifth Edition.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Microsoft Visual Basic 2008 CHAPTER NINE Using Arrays and File Handling.
Microsoft Visual Basic 2005 CHAPTER 9 Using Arrays and File Handling.
Using Arrays and File Handling
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
1 14/10/58Dr.Mud-Armeen Munlin 1 Files and Streams ผศ. ดร. หมัดอามีน หมันหลิน Faculty of IST, MUT
Chapter 10: Structures and Sequential Access Files
Chapter Ten Structures and Sequential Access Files Programming with Microsoft Visual Basic th Edition.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Ticket Information Application Introducing Sequential-Access Files.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Chapter Ten Structures and Sequential Access Files Programming with Microsoft Visual Basic th Edition.
CSCI 3327 Visual Basic Chapter 4: Control Statements in Visual Basic (Part 1B) UTPA – Fall 2011.
Reference: Lecturer Lecturer Reham O. Al-Abdul Jabba lectures for cap211 Files and Streams- I.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Internal Lab Registeration labreg/lab/signup.aspxhttp:// labreg/lab/signup.aspx
Files and Streams. Objectives Learn about the classes that support file input/output Understand the concept of abstraction and how it related to the file.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Chapter 14: Files and Streams. 2Microsoft Visual C# 2012, Fifth Edition Files and the File and Directory Classes Temporary storage – Usually called computer.
Copyright © 2012 Pearson Education, Inc. Chapter 5 Loops, File, and Random Numbers.
CSCI 3328 Object Oriented Programming in C# Chapter 11: Files and Streams -- Exercises 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Ten Structures and Sequential Access Files.
BACS 287 File-Based Programming. BACS 287 Data Hierarchy  Database - Collection of files, relationships, integrity information, etc  Files - All records.
CSCI 3328 Object Oriented Programming in C# Chapter 12: Databases and LINQ – Exercises 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
Files and Streams. What is a file? Up until now, any stored data within a program is lost when the program closes. A file is a permanent way to store.
Chapter 6: Using VB.NET Supplied Classes Visual Basic.NET Programming: From Problem Analysis to Program Design.
Files and Streams Lec Introduction  Files are used for long-term retention of large amounts of data, even after the program that created the.
1 Displaying Dialog Boxes Kashef Mughal. 2 Midterm Stats Here we go  Average was  Low was 116  High was 184  Mid Quarter Grade - check any.
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Files.
CSCI 3327 Visual Basic Chapter 4: Control Statements in Visual Basic (Part 2B) UTPA – Fall 2011 Part of the slides is from Dr. John Abraham’s previous.
Using Multiple Forms.
CSCI 3327 Visual Basic Chapter 11: Files and Streams
Files and Streams.
CSCI 3328 Object Oriented Programming in C# Review: Final Exam
The University of Texas – Pan American
Sequential Input and Output using Text Files
File Input/Output (I/O)
CSCI 3327 Visual Basic Chapter 7: Data Manipulation in Arrays
CSCI 3328 Object Oriented Programming in C# Chapter 4: C# Control Statement – Part I UTPA – Fall 2012 This set of slides is revised from lecture slides.
CSCI 3327 Visual Basic Chapter 7: Arrays
The University of Texas – Pan American
CSCI 3327 Visual Basic Chapter 8: Introduction to LINQ and Collections
CSCI 3328 Object Oriented Programming in C# Chapter 4: C# Control Statement – Part I – Exercises UTPA – Fall 2012 This set of slides is revised from lecture.
CSCI 3328 Object Oriented Programming in C# Chapter 9: Classes and Objects: A Deeper Look – Exercises UTPA – Fall 2012 This set of slides is revised from.
Files & Streams.
The University of Texas – Pan American
CSCI 3327 Visual Basic Review: Final Exam
The University of Texas Rio Grande Valley
CSCI 3328 Object Oriented Programming in C# Review: Final Exam
CSCI 3328 Object Oriented Programming in C# Chapter 11: Files and Streams -- Exercises UTPA – Fall 2012 This set of slides is revised from lecture slides.
CSCI 3328 Object Oriented Programming in C# Chapter 3: Introduction to Classes and Objects – Exercises UTPA – Fall 2012 This set of slides is revised.
CSCI 3327 Visual Basic Review: Exam I
CSCI 3328 Object Oriented Programming in C# Review: Final Exam
The University of Texas – Pan American
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look
Files and Streams Lect10 GC201 12/1/2015.
CSCI 3328 Object Oriented Programming in C# Review: Final Exam
CIS16 Application Development and Programming using Visual Basic.net
The University of Texas – Pan American
Files and Streams.
CSCI 3328 Object Oriented Programming in C# Chapter 8: LINQ and Generic Collections – Exercises UTPA – Fall 2012 This set of slides is revised from lecture.
CSCI 3328 Object Oriented Programming in C# Review: Exam I
Presentation transcript:

CSCI 3327 Visual Basic Chapter 11: Files and Streams UTPA – Fall 2011 Part of the slides is from Dr. John Abraham’s previous lecture slides. – Xiang Lian

Objectives In this chapter, you will do some exercises about: File and stream manipulations Windows forms GUI

Exercises The smallest data item a computer can process is called a ________. 1. database 2. byte 3. file 4. bit A group of related records is stored in a ____. 1. file 2. field 3. bit 4. byte Data maintained in a file is called _____. 1. persistent data 2. bits 3. secondary data 4. databases Methods from the ____ class can be used to write data to a file. 1. StreamReader 2. WriteFile 3. StreamWriter 4. None of the above Namespace ____ provides the classes and methods you need to perform file processing. 1. System.IO 2. System.Files 3. System.Stream 4. System.Windows.Forms Sometimes a group of related files is called a ____. 1. field 2. database 3. collection 4. byte

Exercises (cont'd) A(n) ____ allows the user to select a file to open. 1. CreateFileDialog 2. OpenFileDialog 3. MessageBox 4. SaveFileDialog Digits, letters, and special symbols are referred to as ______. 1. constants 2. Integers 3. characters 4. None of the above StreamReader method _____ reads a line from a file. 1. ReadLine 2. Read 3. ReadAll 4. ReadToNewline A _____contains information that is read in the order it was written. 1. sequential-access file 2. StreamWriter 3. StreamReader 4. None of the above Methods from class _____ can be used to read data from a file. 1. StreamWriter 2. FileReader 3. StreamReader 4. None of the above

True / False Statement A form is a container. All mouse events use the same event arguments class. A control’s tool tip text is set with the ToolTip property of class Control. Menu items can display ComboBoxes, checkmarks and access shortcuts. The ListBox control allows only a single selection (like a RadioButton) An MDI child window can have MDI children. MDI windows can be moved outside the boundaries of their parent window.