Sharon has started to use both the stock details management and the file information viewer
features of the application. However, while using the file information viewer application, she
accidentally enters the path of a folder that does not exist on her computer. This caused the
application to stop responding. In addition, the format in which the stock details are displayed is
not clear. Therefore, she asks Hayley to modify the application so that:
The file information viewer does not stop responding in case a specified folder does not exist.
The stock details management application adds a line break before every stock details entry
whenever a new entry is added to the stock details file.
Write the code snippets that Hayley should use to address the preceding two requirements [10