C
C#16mo 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
Buddy16mo ago
Please show the error too red squiggly lines aren't helpful
Serene Sphinx
Serene SphinxOP16mo ago
Just a sec
Serene Sphinx
Serene SphinxOP16mo ago
Thinker
Thinker16mo ago
Where do you expect SectionTitle to come from?
Serene Sphinx
Serene SphinxOP16mo 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
Buddy16mo 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 SphinxOP16mo ago
Hey
Buddy
Buddy16mo ago
hey?
KidAlchemy
KidAlchemy16mo ago
Did you get it working?
Serene Sphinx
Serene SphinxOP16mo ago
Not yet
Accord
Accord16mo 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?