Answer to Question #43812 in C# for ATUL

Question #43812
Which classes of the .NET Framework should Hayley use to ensure that the stock details are
available to Sharon at all times? Justify your answer along with reasons
1
Expert's answer
2014-07-02T13:52:28-0400
One ofseveral main classes to ensure that the files are available is "File" class from "System.I0"namespace. It contains "bool Exists (stringpath)" method that allows to ensure that the file exists. Itreturns logic value "true" or "false" and takes 1 string
argument with the path to appropriate file.
The nextclass is "FileInfo" from "System.I0" namespace. It also has the same "bool Exists(string path)" method. Thismethod duplicates method from the previous class.
Thedifference is that in the second case you need to createan object of the FileInfo class and then call"Exists" method from created object. In the "File" class
"Exists" method is static. It means that it can be called fromclass name: System.I0.File.Exists(sfring path). So these two classeswould help Hayley to ensure that the stock details are available to Sharon at
all times.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS