TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
James
NA
2
0
Help with encoding and syntax
Nov 18 2007 5:19 PM
Hi,
I'm new to C# so please forgive this basic question.
I would like to insert a variable into the line below at System.Text.Encoding.Unicode
TextWriter tw = new streamWriter(fileName,false,System.Text.Encoding.Unicode);
I also want to use the following as variables:
System.Text.Encoding.ASCII
System.Text.Encoding.UTF8
I would like to assign each encoding as a variable so I can insert the variable I require.
Example:
TextWriter tw = new streamWriter(fileName,false,myVerUnicode);
How do I go about declaring the variables and using the variable in the above line?
Many thanks.
Reply
Answers (
1
)
What are some good beginner programmes I could write to practice?
Print Price