C
C#15mo ago
Serene Sphinx

❔ Why showing error IDK.

I'm learning FileIO and I have copied code from book to learn but showing error.
11 Replies
Buddy
Buddy15mo ago
Please show the error too red squiggly lines aren't helpful
Serene Sphinx
Serene SphinxOP15mo ago
Just a sec
Serene Sphinx
Serene SphinxOP15mo ago
Thinker
Thinker15mo ago
Where do you expect SectionTitle to come from?
Serene Sphinx
Serene SphinxOP15mo ago
I have just coped to learn file IO from book and as you asking in book what you are saying is not mentioned. Maybe from above 3 IO namespaces using static System.IO.Directory; using static System.IO.Path; using static System.Environment; Hey
Buddy
Buddy15mo ago
I suggest calling your Program class something else and then just call Foo.Bar() as it is a static method or don't abuse partial classes and just define the method in the startup file itself
Serene Sphinx
Serene SphinxOP15mo ago
Hey
Buddy
Buddy15mo ago
hey?
KidAlchemy
KidAlchemy15mo ago
Did you get it working?
Serene Sphinx
Serene SphinxOP15mo ago
Not yet
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server