Question: In java In this assignment, you will be creating a Java based system for automated web page generation from data provided to you on the

In javaIn java In this assignment, you will be creating a Java basedsystem for automated web page generation from data provided to you onthe fly. Firstly, you will have to list the directory and filestructure at a given path and then you will have to processall the files present at that path. A detailed task description isgiven below: ! . List all the directories, subdirectories and files presentat a path. You should assume that there is a folder namedData which will be available in the same directory as your .javafile and will contain all the files that you must process. Youshould open a file named "log.txt" and write the detailed file structurepresent in the Data folder in it. You must take the recursiveapproach to list all files and directories present in the Data folder.For example, a sample log of directory system is shown in figure2. You must use exception handing while using the File class. EclipseWorkspace- Asignment3/sre/Assignm ar File Edit Source Refactor Navigate Sedirectory C.EclipseWorkspace\Asignment3\DataBikes file C:EclipseWorkspace Asignment3 Data Bikesi1.jpeg file:C\EclipseWorkspace\Asignment3 Data Bikes12.jpeg file:C:EclipseWorkspace\Asignment3 Data Bikes13.jpeg Is PackageExploreE /> 'A IRE System Library [lavaSE-18] directory:C: EclipseWorkspace Asignment3\Data Cars (defaultpackage) file:C:EclipscWorkspacclAsignment3 DatalCars 1.jpcg file:C:EclipseWorkspacelA signment3\Data Cars12.jpeg Duta Bikes directory C:iEclipseWorkspace\ Asignment3DatalNature

In this assignment, you will be creating a Java based system for automated web page generation from data provided to you on the fly. Firstly, you will have to list the directory and file structure at a given path and then you will have to process all the files present at that path. A detailed task description is given below: ! . List all the directories, subdirectories and files present at a path. You should assume that there is a folder named Data which will be available in the same directory as your .java file and will contain all the files that you must process. You should open a file named "log.txt" and write the detailed file structure present in the Data folder in it. You must take the recursive approach to list all files and directories present in the Data folder. For example, a sample log of directory system is shown in figure 2. You must use exception handing while using the File class. EclipseWorkspace - Asignment3/sre/Assignm ar File Edit Source Refactor Navigate Sedirectory C.EclipseWorkspace\Asignment3\DataBikes file C:Eclipse Workspace Asignment3 Data Bikesi1.jpeg file:C\EclipseWorkspace\Asignment3 Data Bikes12.jpeg file:C:EclipseWorkspace\Asignment3 Data Bikes13.jpeg Is Package ExploreE /> 'A IRE System Library [lavaSE-18] directory:C: EclipseWorkspace Asignment3\Data Cars (default package) file:C:EclipscWorkspacclAsignment3 DatalCars 1.jpcg file:C:EclipseWorkspacelA signment3\Data Cars12.jpeg Duta Bikes directory C:iEclipseWorkspace\ Asignment3DatalNature 1jpeg 2.ipeg 3ipeq file:C:Eclipse WorkspacelAsignment3 Data Nature 1.jpeg file C:Fclipse Workspace\A signment3\DataNature12.jpeg file C.Eclipse WorkspacelAsignment3 DataNaturel3.jpeg file:C:EclipseWorkspacelA signment3 Data Nature 4 jpeg file:C:EclipseWorkspace Asignment3\DataNature 5.jpeg file:CEclipse Workspace\Asignment3 Data Nature16.jpeg file C:EclipseWorkspace\Asignment3 Data Nature!7jpeg file:C:\Eclipse Workspace\A signment3 Data Nature 8 jpeg file:C:Eclipse Workspace Asignment3 Data Nature9.jpeg ? Cars 2jpeg Nature 1jpeg 2jpeg jpeg 4jpeg S.jpeg ?.jpeg 7jpeg 8.jpeg 9.jpeg Figure 2. A sample directory structure and corresponding log file In this assignment, you will be creating a Java based system for automated web page generation from data provided to you on the fly. Firstly, you will have to list the directory and file structure at a given path and then you will have to process all the files present at that path. A detailed task description is given below: ! . List all the directories, subdirectories and files present at a path. You should assume that there is a folder named Data which will be available in the same directory as your .java file and will contain all the files that you must process. You should open a file named "log.txt" and write the detailed file structure present in the Data folder in it. You must take the recursive approach to list all files and directories present in the Data folder. For example, a sample log of directory system is shown in figure 2. You must use exception handing while using the File class. EclipseWorkspace - Asignment3/sre/Assignm ar File Edit Source Refactor Navigate Sedirectory C.EclipseWorkspace\Asignment3\DataBikes file C:Eclipse Workspace Asignment3 Data Bikesi1.jpeg file:C\EclipseWorkspace\Asignment3 Data Bikes12.jpeg file:C:EclipseWorkspace\Asignment3 Data Bikes13.jpeg Is Package ExploreE /> 'A IRE System Library [lavaSE-18] directory:C: EclipseWorkspace Asignment3\Data Cars (default package) file:C:EclipscWorkspacclAsignment3 DatalCars 1.jpcg file:C:EclipseWorkspacelA signment3\Data Cars12.jpeg Duta Bikes directory C:iEclipseWorkspace\ Asignment3DatalNature 1jpeg 2.ipeg 3ipeq file:C:Eclipse WorkspacelAsignment3 Data Nature 1.jpeg file C:Fclipse Workspace\A signment3\DataNature12.jpeg file C.Eclipse WorkspacelAsignment3 DataNaturel3.jpeg file:C:EclipseWorkspacelA signment3 Data Nature 4 jpeg file:C:EclipseWorkspace Asignment3\DataNature 5.jpeg file:CEclipse Workspace\Asignment3 Data Nature16.jpeg file C:EclipseWorkspace\Asignment3 Data Nature!7jpeg file:C:\Eclipse Workspace\A signment3 Data Nature 8 jpeg file:C:Eclipse Workspace Asignment3 Data Nature9.jpeg ? Cars 2jpeg Nature 1jpeg 2jpeg jpeg 4jpeg S.jpeg ?.jpeg 7jpeg 8.jpeg 9.jpeg Figure 2. A sample directory structure and corresponding log file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!