Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Still have the new programmer smell...This will be easy for you.
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
pat
15y
2.5k
1
Reply
Its frightening how new I am to C# programming...
All i want to do is open a file and the write it on the console window.
using System;
using System.IO;
using System.Collections;
namespace simplerreader
{
class Program
{ public static void Main(string[] args)
{
string filepath = (@"somepath\bs.txt");
string read = File.ReadAllText(filepath);
Console.WriteLine(read); Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
}
}
}
Result is:
012345678910111213141516171819
Press any key to continue . . .
Why am I getting numbers as the results?
Thank you for any assistance.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to create a csharp user interface for a sql database
Search results - I always return to page 1