C
C#2y ago
badb0nny

✅ Probably a simple general knowledge question, not to sure what to title it?

Im trying to store some data in a seperate file and then use it in a string but for some reason the string seems to come out as 2 strings which split at the variable?
string data = File.ReadAllText("./ntfFuoyFGA7qts1i/MDBP.txt");
string MDBLink = String.Format("hello {0}", data);
string data = File.ReadAllText("./ntfFuoyFGA7qts1i/MDBP.txt");
string MDBLink = String.Format("hello {0}", data);
for some reason returns hello /data/ and im trying to make it return hello /data/
1 Reply
badb0nny
badb0nny2y ago
Not sure how to close this but i have fixed it