In this video, we will rewrite the council, which will use a file system to ask you to come on.
You know, this example, so you the one product is used as a council.
As you see, this is a council which rolled into La S. We are way past Comice Askew camos.
Come on, do we support it's got total memory.
In this example, the council only received a comment on a finite commodity in the filesystem, if Zuckermann
is Phonte, it will ask you to file, just as we did in the last video.
So function get total memory is not used here.
Our function passement.
Also here, Camonte are discarded as well.
It's our main function.
After we started, Cholmondeley to buffer waybill circuits the same file name into image file on OpenEdge.
So we called function open file.
And the name of the file is stored in the buffer.
We checked the recent audio.
If they return what it is, minus one, it means that it so far is not font.
So print.
Command, not font.
Otherwise, we know that the file which executes commands it font.
So they could file.
Next, we will forego process to ask you to come out.
So we call function fork.
If we return to the new process, which means the bid is zero.
We call function as cute undeposited, the name of the file to it by cardiovascular functions and your
process will run the file which just fought.
When it is done, it will be as adult.
You fit into the process, then the number is not zero, so we call wavefunction.
To wait for the new process, as it so happens, the pity number of the legal process and wait for it
to arrive at.
When the new process, as it were, we will return from the weight function and continue to look.
As you can see, here is an infinite look, each time we retrieve the data in the buffer will be a first
career as a buffer so that the last command scene, a buffer, we will not affect the phone and data
we will read into Buffer.
So before we call function retirement command, we use function, ma'am, set to clear the buffer.
Here, he says, the size of the buffer to one hundred of its.
Another case we need to handle is that when we press backspace key to delete characters, so in the
predicament.
We made that comment about Forsys, we also need to clear the cardinal character in the buffer which
mutilates to captor's.
OK, that's it for the council.
In this example, we still use that memory function to do the test.
So we create a new folder.
Toto mam.
Helicopters are necessary fives into it.
So we use the files in the use of one product.
In the main function.
The only thing we will to.
It's got to total memory.
So we call function got total memory, you and then we perent.
Total memory is the number.
And we printed you megabyte fomites.
In the pilot script.
We changed the article to file.
From user, tapin to Taurama.
Not that the system only supports filename with eight characters, so total is OK in this case.
All right, let's build a products.
Raymont Overstored MH.
On the copies that are being.
And total, Matt.
Since we didn't change to Colonel Darby, we don't need to it here, OK?
A monster partition under a box.
Because we just simply placed a command file in the directorate of the image, we can, in fact type
all the names of the files stored in the image and ask of them, which is not what we want to do.
So here we just type in the name of the files that are not in the image.
I know you can see message commander dot font is printed.
So only commodify, what we call it in the image is total.
So it's up to a man on a presenter.
You can see the total, ma'am, is one thousand on 23 megabytes.
Because in total malfunction, we don't point your line outside of the character's.
So here the shall prompt and the total memory message is provided as the same line.
OK, that's it for this video.
See you in the next to.