Question

2. Write a program in C# Sharp which will create a file on disk and write some data on it then copy this data to another new file. Ø Use method creates a Stream Writer that writes a new text file. Ø useCopyTo method is used to copy an existing file into anew file.

Fig: 1

Fig: 2

Fig: 3