i want to save a text file (eg:ABC.txt) in RES file and load it into a combo box or a list box using following code..

Open App.path & "\ABC.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, s
Combo4.AddItem s
Close #1

how do i give the path of text file from RES file...

thanks in advance



You don't, you need to either use LoadResData or LoadResString to extract the information from a resource file and then use split to put that information into an array to add it to your combobox or save it to a file to use your code.

Good Luck