Okay.
So welcome back.
In this lecture we're going to ask the user to select the files.
So now we have a list of files here and we have already printed them.
Now here we will ask the user to bring two into the file name.
So if empty the end and then we relax the user to it and to select for them and then find
and then I'm going to create a new that we should be of right before input output.
And then we are going to take the user input so I'm going to use or start a studio in which is the standard
input.
The next step is to read the user input.
So I'm going to call the user input so equals to be the go to the string then backslash and then it's
two year term and uh once I have this user input what they can do is that.
Okay.
So the program I want to develop is like this.
So over here we are printing the final index and then defining them.
So it would be something like this.
For example zero.
And then let's say 5 in Japan and then 1 and then let's say whatever the final is let's say you mean
that.
So we have to find what I want to do is I want to select these five.
So there are two methods that I can entirely void the file name which would be fine or Japan or me and
not go.
But the problem here with this approach is that it can.
For example if you typed a wrong spending or something and file names are usually very long.
So this can cause a lot of problem and it's really inconvenient to write every name.
So what I want to do is I want to select a file based on the indexes.
So I will ask the user to provide me an index for example 0 1 2 or whatever and then the user will.
And once I have this I want what I can do is I can simply select the file name by its respective index.
Here I can into either 0 or 1.
Once I have this I can work with this to convert this into the final.
So let's start with it.
So we have already extinct.
So the next thing is to remove the backslash and connector from this user input.
So you use the
input inputs two strings the long term suffix on the news input.
And then backslash.
And so this will remove the bag selection not New Line character from our user input.
The next thing is to use this to access our files at a.