Answer to Question #36053 in C# for Kevin

Question #36053
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
Expert's answer

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS