By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,806 Members | 1,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,806 IT Pros & Developers. It's quick & easy.

Writing to text file

P: n/a
Yunus's Group May 23, 3:36 pm show options

Newsgroups: microsoft.public.dotnet.languages.vb
From: "Yunus's Group" <yunusasm...@gmail.com> - Find messages by this
author
Date: 23 May 2005 12:36:14 -0700
Local: Mon,May 23 2005 3:36 pm
Subject: Writing to text file
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse

Hello,
I have a need to write to a TEXT file which has the columns of data
separated by a tab. I want to add another column as the last column in
the file and add values to all the lines of data in the text file for
that column.
For example: Here is the sample data
EMP_ID EMP_NAME
1 a
2 b
NOW I WANT TO ADD ANOTHER COLUMN GENDER:
EMP_ID EMP_NAME GENDER
1 a M
2 b F
Reply

Jerry Camel May 23, 4:31 pm show options

Newsgroups: microsoft.public.dotnet.languages.vb
From: "Jerry Camel" <rlrc...@msn.com> - Find messages by this author
Date: Mon, 23 May 2005 16:31:00 -0400
Subject: Re: Writing to text file
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Read in the entire line, append your text and write it to a new file.

"Yunus's Group" <yunusasm...@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
- Hide quoted text -
- Show quoted text -
Hello, I have a need to write to a TEXT file which has the columns of data
separated by a tab. I want to add another column as the last column in the file and add values to all the lines of data in the text file for that column.
For example: Here is the sample data
EMP_ID EMP_NAME
1 a
2 b
NOW I WANT TO ADD ANOTHER COLUMN GENDER:
EMP_ID EMP_NAME GENDER
1 a M
2 b F


Reply

Yunus's Group May 23, 5:14 pm show options

Newsgroups: microsoft.public.dotnet.languages.vb
From: "Yunus's Group" <yunusasm...@gmail.com> - Find messages by this
author
Date: 23 May 2005 14:14:26 -0700
Local: Mon,May 23 2005 5:14 pm
Subject: Re: Writing to text file
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse

Thanks for the reply,
Is there a way to write to the same file? instead of creating a new
file?
Reply

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.