i want visual basic to require some files to be in a dir. what is the code for this.

also i need code to have vb get some text from a text file like get text after the word ex. here and stop getting it at the word ex. there then take it into another text file and insert the text after the line ex. hope some can help.
Can someone please help me with this i would appreciate it alot