PDA

View Full Version : vba I/O text



BrianMH
04-20-2011, 01:10 AM
Hi,

Can any of the gurus here point me in the direction of a good reference for using I/O for writing and reading text files. I've been googling and found a few but would be interested if anyone has used a particular one that is quite detailed and helpful.

Also while a file is open for writing is there a way of returning the line number you are on?

Thanks

Bob Phillips
04-20-2011, 02:45 AM
I think it is far too small a topic for a book Brian. I would suspect articles on t'interweb is the best source.

BrianMH
04-20-2011, 05:05 AM
Thanks. Any idea on how to return the current line?

Bob Phillips
04-20-2011, 02:45 PM
What do you mean by current line?

BrianMH
04-20-2011, 10:55 PM
If I'm writing to a file and I might be doing this at different points instead of adding some sort of counter can I tell how many lines are in the file I have open for writing to.

Bob Phillips
04-20-2011, 11:45 PM
Just open the file each time Append.