Answer to Question #36053 in C# for Kevin
I don't know how to change it so that it returns what i want (The string...
public static StreamReader PromptFile(string prompt)
{
string filename = UI.PromptLine(prompt);
if (File.Exists(filename)) {
StreamReader gdsum = new StreamReader("The sum is " + CalcSum (filename));
return gdsum;
}
else {
StreamReader bdsum = new StreamReader ("Bad file name " + filename);
return PromptFile(prompt);
}
0
Answer in progress...
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!
Learn more about our help with Assignments:
C#
Comments
Leave a comment