Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2005, 06:27 AM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sajid_pk Send a message via Yahoo to sajid_pk
Default Inserting Tab Delimiter in Text File using ASP.NET

Hi guys,

Can anyone let me know how to insert TAB in a text file using StreamWriter object. Simple, isn't it?

Thanks.
 
Old June 7th, 2005, 11:18 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you add a literal string with a tab in it?
Code:
"    "
(There's a tab literal in between the quotes but the forum will change it to several spaces. However it should work in your stream writer.)

-Peter
 
Old June 8th, 2005, 04:02 AM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sajid_pk Send a message via Yahoo to sajid_pk
Default

No, it's not working. Could you also confirm this on your PC. Thanks.


Quote:
quote:Originally posted by planoie
 Can you add a literal string with a tab in it?
Code:
"    "
(There's a tab literal in between the quotes but the forum will change it to several spaces. However it should work in your stream writer.)

-Peter
 
Old June 8th, 2005, 09:39 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I can confirm that I can press the tab key while editing code and make a string literal that contains a tab. I've done it numerous times for the same exact purpose. (Although I don't often use the StreamWriter class.)

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Import text file to MS Access, ASP.net rykie Access ASP 0 August 31st, 2007 03:07 AM
Inserting text file lines into an array? georginho Visual Basic 2005 Basics 8 January 15th, 2007 09:44 AM
Write Tab-delimited text file VikramMullick Pro VB.NET 2002/2003 1 May 5th, 2006 11:18 AM
Comma Delimiter / Text Qualifier pearce64 Excel VBA 0 October 25th, 2005 04:57 PM
Multiple delimiter Text file import into Access Suomi Access VBA 2 June 12th, 2005 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.