How can you read content from file?

Answers were Sorted based on User's Feedback



How can you read content from file?..

Answer / mohit mathur

FileSystemObject is used to handle file reading/writing.
We can add 'Scripting Runtime' option from the references
and use filesystemobject.

Is This Answer Correct ?    0 Yes 0 No

How can you read content from file?..

Answer / 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

More Visual Basic Interview Questions

How do I implement Undo?

0 Answers  


What is the use of Hyperlink control for DHTML applications?

0 Answers  


How would you attach pictures in Treeview Control?

1 Answers   HCL,


How would you convert a form into document?

0 Answers  


What is the difference between procedure and functions in VB?

15 Answers   Infrasoft,






What is the difference between COM and DCOM?

9 Answers   7 Seas, American Infoserv, Microsoft, SRMSCET,


Which method is used to write context Into file?

0 Answers  


What is Static Cursor?

1 Answers  


How about Access 2.0 compatibility?

0 Answers  


What is the use of NEW Keyword? Explain.

0 Answers  


Does VB support pointers to functions?

0 Answers  


What is the difference between Msgbox Statement and MsgboxQ function?

1 Answers  


Categories