Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net write character code to file

Posted on 2014-01-27
2
Medium Priority
?
427 Views
Last Modified: 2014-01-28
I am writing a vb.net console application which writes to a file.  I have to write the character code (31) as my column delimiter and character code (29) as my row delimiter.  How would I go about writing these character codes using system.io.streamwriter and the .Write() or .WriteLine() method(s).  Thanks in advance.
0
Comment
Question by:Paulconsulting
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 39813587
Use Asc() function. So for example

writer.Write("Some Text" & Asc(31) & "Some more text" & Asc(29))
0
 

Author Closing Comment

by:Paulconsulting
ID: 39814925
Perfect thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question