Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
An overview of I/O.
Recommended Prerequisites
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
[MUSIC]
0:00
Hi, I'm Carling,
a Treehouse teacher and a developer.
0:04
With this course we're going
to learn all about I/O.
0:08
You may have heard the term I/O before,
it stands for input/output.
0:12
In a broader sense,
0:16
I/O refers to the mechanism of
communication between two points.
0:17
One point sends output and
another receives the input.
0:22
A keyboard is used to input data and
a monitor is used to output data.
0:26
Most software applications
deal with some form of I/O.
0:31
In a console application, we type
something at the prompt, we give it input,
0:35
and then usually it prints something
to the screen, that's the output.
0:40
We're going to explore all the different
ways of getting data into and
0:44
out of our programs.
0:47
First, we'll walk through
the steps of reading a text file,
0:49
then we'll process the data into
something that's more usable.
0:52
Then we'll learn about writing
the results of our processing to a file.
0:56
In the end, we'll use our new knowledge
to send and receive data from the web.
1:01
Along the way we’ll be using
streams to transport our data,
1:06
you can think of a stream as,
well, a stream.
1:10
Water flows down a stream and
in I/O bytes flow down a stream,
1:13
in the computer world,
the bytes represent our data.
1:18
You might be saying yeah,
yeah I know what a byte is, sorta.
1:20
Without getting into too much detail,
a byte consists of eight bits and
1:25
a byte is a one or zero.
1:30
Bits stands for binary digit and that's
how we store information on a computer.
1:32
You can also think about a bit as being
a Boolean value, a zero is false and
1:38
a one is true.
1:42
I'm a fan of soccer, or
as most of the world calls it, football.
1:45
We'll be using data from soccer games
to load into our application and
1:49
do some calculations on it.
1:52
For this course, make sure you've got
the basics of the C# programming language.
1:54
If you haven't yet taken C# Basics or
C# Objects, I've provided links for
1:59
you in the notes.
2:04
It's also a good idea to have taken http
2:06
basics when we get into sending
data over the Internet.
2:08
Let's get started.
2:12
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up