Re: Reading A Text File Using VB6
- From: "AK" <nospam@xxxxxxxxxxx>
- Date: Thu, 22 Jun 2006 13:23:24 -0500
Karl,
Just browsing thru and came to your reply. Great advice for me. I need to do
this more instead of paraphrasing.
BTW, what are the protocols in our group for indicating in the snips of
posted code any comments from the poster concerning the code to the group.
If I have a particular problem at a line should I use a << or something else
to call out to the group any info that would be helpful at understanding my
question. I have just used the comment ' in the past, but am thinking that
this is ambigous as to whether it is just a code comment or a comment I am
making to the group.
Also is ther a way to simply post a project. Many times I run into problems
in the main code, adn to make it easier I creat a dummy project consisting
of a formadn the problem children subs. at times I thought that it might be
helpful to aslo post the project to help folks "see' the problem. of course
maybe "good' coder can "see" it in their head simply from the code snips,
just as Mozart saw music in his head and then wrote it down error free. Wish
I could do that!
Thanks
AK
"Karl E. Peterson" <karl@xxxxxxxx> wrote in message
news:%23Nv$vMilGHA.2344@xxxxxxxxxxxxxxxxxxxxxxx
ods wrote:
Actually that is the exact code I am using except for the filename and
the 'DIM Data_INput as string'. But that diesn't make any difference.
I'll restate -- *NO* it is not the exact code you're using, even with your
given "excepts." Had you said:
Open "filename.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, data_input
Loop
Close #1
Yeah, that I'd accept. (Do you see the difference?)
Some history. I used to review the reader tips for VBPJ. We got 1000s of
them in the mail. When I'd see code that was obviously typed directly
into
an email, it was immediately suspect. Almost always, there were typos and
other problems that the IDE would've autocorrected. Added lots of time to
my task, were I to even consider them. Nearly *always*, getting them
ready
for publication took on the order of 3-5x longer than code that was cut
directly from the IDE. This sloppyness generally caused me to reject
out-of-hand, and move right along to the next tip. Fwiw.
As your 3rd grade teacher told you, "Neatness counts!" ;-)
Thanks for the code help though.
Yeah, hope it helps.
--
Working without a .NET?
http://classicvb.org/
.
- Follow-Ups:
- Re: Reading A Text File Using VB6
- From: Karl E. Peterson
- Re: Reading A Text File Using VB6
- References:
- Reading A Text File Using VB6
- From: ods
- Re: Reading A Text File Using VB6
- From: Karl E. Peterson
- Re: Reading A Text File Using VB6
- From: ods
- Re: Reading A Text File Using VB6
- From: Karl E. Peterson
- Reading A Text File Using VB6
- Prev by Date: Re: vb6 support
- Next by Date: Re: Reading A Text File Using VB6
- Previous by thread: Re: Reading A Text File Using VB6
- Next by thread: Re: Reading A Text File Using VB6
- Index(es):
Relevant Pages
|