I think you will need to look up information and experiment for yourself, but we can help steer you in the right direction.
For a start, there are two main methods commonly used for dealing with text files in VB6.- The simple, built-in method using Open, Line Input #, Print #, Write #, Get, Put and Close statements.
- The slightly more complex, but more powerful FileSystemObject. To use this one you have to add the Microsoft Scripting Runtime to your project, under Project | References.
You should investigate these (start with the Open and Line Input statements for the former) and decide for yourself which is a better match for your needs.
Yes Killer you got my problem exactly,
I have already got solution for my problem by using FileSystemObject. But i have write my own logic to implement this. I just want to know whether any direct and easy method to do the same.
I wl narrate my requirment in details
I have text file with some name list as follows.
0400933313
0400934041
and there is one text file which has error description with it as follows.
2007-03-12-17:59:27 Tiff file [44.TIF] has incorrect format.
2007-03-12-17:59:27 Error in document. [0400933313__DOCA]
2007-03-12-17:59:27 Error in batch. [0400933313.ddf]
2007-03-12-17:59:27 Problem processing directory. [0400933313]
I have to copy the description in first line 'Tiff file [44.TIF] has incorrect format' to my text file as follows
0400933313 Tiff file [44.TIF] has incorrect format
P.S. Error description can be find in more than one place, i need to get latest(last) description.
Hope i am clear now. if this can be done directly using any function pls send it to me.
Thanx in Advance.