❔ StreamWriter and StreamReading help
Hi, i'm currently working on a project which has a students name, student ID, and if they passed or failed and their percentage and I was just wondering how do I streamwrite and read it all as im still so confused.
![](https://utfs.io/f/269b0588-132f-4238-8075-bb58e47dfa40-sb6rie.png)
10 Replies
Well, this error is obvious
![](https://utfs.io/f/323a2637-1310-4efc-bf12-a0100adf78f2-1nq2cb.png)
And very easy to avoid if you use interpolation instead of concatenation
The other two... We'd need to see what they say
I might be dumb here but what is the difference, sorry this is my first big project i have ever had to do so kinda making errors left and right
$interpolation
String interpolation is the preferred way of building strings in C#. It is easier to read than concatenation.
For example:
can be written as:
'Ere you go
Cheers I didn’t even know about that bit the main error issue I was having was reading just cause it’s giving me a mare
female horse
Sorry nightmare
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.