473,462 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

control character in CSV

Hello all:

I hope someone can explicate this for me:

I have a csv file whose last line consists of two characters are the
hex char 1A (decimal 26, or ^Z) followed by an equal sign ("="), thus:

data,data,data
data,data,data
data,data,data
^Z=

A StreamReader object, encountering this, is returning the filename. Is
this expected, documented behaviour; if so, can someone point me too
it?

Thanks much,
zdrakec

Nov 21 '05 #1
2 1200
zdrakec wrote:
Hello all:

I hope someone can explicate this for me:

I have a csv file whose last line consists of two characters are the
hex char 1A (decimal 26, or ^Z) followed by an equal sign ("="), thus:

data,data,data
data,data,data
data,data,data
^Z=

A StreamReader object, encountering this, is returning the filename. Is
this expected, documented behaviour; if so, can someone point me too
it?

Thanks much,
zdrakec

maybe simple code that shows the problem would help us help you.

Chris
Nov 21 '05 #2
Actually, it's not the StreamReader, but the parser we pass the output
to, that performs this behaviour. I don't have the code, this was
reported to me by a partner of mine.
I guess this isn't a VB question at all. It turns out that the
character ^Z (hex 1A, octal 32, decimal 26) is the substitute control
character, and to the parser we use (and some other systems, I guess),
the string "^Z=" means "substitute the filename here". I'm just looking
for some knowledge about this, either through expertise available on
this group, or documentation, or what have you...

Thanks much,
zdrakec

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: KevenL | last post by:
I'm trying to insert unicode characters into a VB Rich Text control (in this case, the Full Block character (U+2588 on the character map). If I copy and paste from the character map, the character...
6
by: Nathan Griffiths | last post by:
I have been testing our SQL Mail setup in SQL Server 2000 (sp3a) and have found that when I attach results as a file, every other character is a control character which causes each real character...
0
by: Greg Christie | last post by:
I think I have a somewhat unique situation here, so I thought I should post it for the few poor souls who run across it and try to google it like I did. First of all, I was getting the following...
1
by: Mark Johnson | last post by:
I wonder if anyone has a solution? I wanted to use the web browser control as a 'zoom' box for a smaller textbox. I can format in the control, and save whatever formatting as HTML code back to the...
13
by: Dan V. | last post by:
How do I create a one line text file with these control codes? e.g.: 144 = 0x90 and 147 = 0x93? I am trying to create a one line text file with these characters all one one row with no spaces. ...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
0
by: Mark | last post by:
Hi, I am playing around with creating custom server controls for use within a ASP.NET page. I am creating a contact form and have the following question I am capturing the form postback data...
5
by: Noozer | last post by:
Just wondering if it's possible (easy?) to create a "character mode" control that can be included onto a form. Basically I'm looking for a text mode control that uses a fixed width font that...
11
by: Ron L | last post by:
I have a barcode scanner which uses a "keyboard wedge" program so that the data it scans comes through as if it was typed on a keyboard. I am trying to have the data in the barcode be displayed in...
7
by: wannymahoots | last post by:
optparse seems to be escaping control characters that I pass as arguments on the command line. Is this a bug? Am I missing something? Can this be prevented, or worked around? This behaviour...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.