Solved

VB.net write character code to file

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now