Solved

VB.net write character code to file

Posted on 2014-01-27
2
417 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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…

791 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