How can you read content from file?

Answer Posted / vinforum

Dim nFilenum

nFilenum = FreeFile

Open App.Path & "\test.txt" For Input As nFilenum

Text1.Text = Input(LOF(nFilenum), nFilenum)

Close (nFilenum)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you filter out specific type of file using file system controls?

1371


How would you add elements in TreevieW Control?

1534


___ VB constant make the menu item in centre.

1347


I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?

1078


Explain about control properties?

619






Types of cursors in DAO?

1495


which method used to move a recordset pointer in nth position in DAG?

1576


How would you run your ActiveX Document Dll?

1633


How to load and unload child forms.

678


Can you tell me the properties of the controls?

1579


How do you create a form in visual basic?

488


Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.

1082


How many File System Controls are there Explain?

1536


What is the default workspace?

1647


How do I access C style strings?

1004