Enter your Sign on user name and password.

Forgot password?
Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Use Chrome browser to play professor video
John Snape

John Snape

Reading & Writing Files

Slide Duration:

Table of Contents

I. Introduction
Introduction Hello World

46m 9s

Declaring Variables

50m 5s

Accepting Input

14m 11s

Operators, Expressions & Statements

35m 5s

Program Flow Control

36m 35s

Iterations & Looping

19m 4s

Working with Strings

49m 40s

Formatting Strings for Output

23m 15s

Helper Methods

23m 57s

Enumerations & Structures

17m 26s

Commenting & Documenting Code

6m 46s

Arrays, Stacks, Queues & Dictionaries

34m 16s

Generic Lists & Collections

16m 30s

Variable Scope

9m 6s

Reading & Writing Files

23m 10s

Dates & Times

14m 37s

Random Numbers

7m

Handling Exceptions

22m 19s

The My Namespace

18m 49s

Environment Variables

8m 17s

Command Line Arguments

13m 4s

The CD Inventory Program So Far

31m 57s

II. Object Oriented Programming
Introduction to Object Oriented Programming

56m 56s

Understanding & Creating Classes

33m 17s

Understanding Interfaces & Abstract Classes

18m 22s

Static vs. Instance Members

12m 45s

Understanding Inheritance

34m 55s

Understanding Polymorphism

13m 39s

Understanding Delegates

26m 9s

Reading & Understanding Code

37m 23s

Creating a Data Type

40m 42s

Unified Modeling Language & Class Diagrams

22m 24s

Upgraded CD Inventory Program

22m 15s

III. GUI Programming
Introduction to GUI Programming

38m 58s

All About Forms

43m 36s

Handling Form Events

17m

Informational Controls

30m 36s

Command Controls

38m 6s

Grouping Controls

1h 9m 59s

Text Editing Controls

35m 23s

List Selection Controls

42m 23s

Setting Options Controls

25m 58s

Dialog Controls

24m 41s

Graphic Display Controls

32m 45s

Date Setting Controls

18m 29s

Other Controls

13m 28s

Using the Clipboard

9m 31s

Sending Email

22m 30s

Some Sample Programs, Part 1

23m 2s

Some Sample Programs, Part 2

14m 9s

InputBox & Message Box

11m 4s

CD Inventory Program Upgraded with Forms

14m 44s

IV. Databases
Introduction to Databases

34m 7s

SQL Server Management Studio & Northwind Database

8m 11s

SELECT Statement

31m 24s

UPDATE & DELETE Statements

16m 56s

INSERT Statement

11m 48s

Creating a Database from Scratch

44m 54s

Querying Lists with LINQ

15m 7s

Using Databound Controls

17m 29s

CD Inventory Program Updated with a Database

15m 29s

V. Conclusion
Where to Go from Here

17m 50s

Loading...
Educator®

Please sign in to participate in this lecture discussion.

Sign-In OR Create Account

Enter your Sign-on user name and password.

Forgot password?

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Sign up for Educator.com

Membership Overview

  • Unlimited access to our entire library of courses.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lesson files for programming and software training practice.
  • Track your course viewing progress.
  • Download lecture slides for taking notes.
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Visual Basic
  • Discussion

  • Study Guides

  • Table of Contents

Lecture Comments (3)

2 answers

Last reply by: David Llewellyn
Mon Jul 28, 2014 10:14 PM

Post by David Llewellyn on July 26, 2014

There seems to be a mismatch between the video and audio in this lecture. as this is a fairly complex section, can this be fixed?

Reading & Writing Files

  • being able to save values between executions of your programs is key to creating useful, reusable programs
  • .WriteAllText and .ReadAllText are the simplest way of saving and restoring text in files
  • StreamWriter and StreamReader allow text to be read or written a little at a time, instead of all at once
  • Remember to .Flush and .Close your files!
  • Path.Combine is the safest way to create file path strings
  • .GetFiles and .GetFolders allow you to simply access file and folder names
  • FileInfo exposes information about a file, such as:
    • Extension
    • FullName
    • Length
    • CreationTime and LastAccessTime
  • .CopyTo copies a file from one place to another
  • If you want to move a file, use .CopyTo to copy it first, then use .Delete to delete the original
  • .GetTempFileName allows you to use temporary files without having to worry about cleaning up after they are no longer needed