❔ Why showing error IDK.

I'm learning FileIO and I have copied code from book to learn but showing error.
11 Replies
Buddy
Buddy2y ago
Please show the error too red squiggly lines aren't helpful
Serene Sphinx
Serene SphinxOP2y ago
Just a sec
Serene Sphinx
Serene SphinxOP2y ago
Thinker
Thinker2y ago
Where do you expect SectionTitle to come from?
Serene Sphinx
Serene SphinxOP2y 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
Buddy2y 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 SphinxOP2y ago
Hey
Buddy
Buddy2y ago
hey?
KidAlchemy
KidAlchemy2y ago
Did you get it working?
Serene Sphinx
Serene SphinxOP2y ago
Not yet
Accord
Accord2y 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.

Did you find this page helpful?