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 to declare Dll Procedure?

1 Answers  


How many File System Controls are there ? Explain.

0 Answers  


Record set object consists of what?

5 Answers   Microsoft,


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

0 Answers  


How would you attach an ActiveX control in Your Application?

0 Answers  


How can you get selected file from file system Control?

0 Answers  


Dim x, y as integer. What is x and y data type?

8 Answers  


How to trap Data Base Error?

1 Answers  


which property used to add a menus at runtime?

0 Answers  


How to get Cursor position using API?

0 Answers  


Explain Default cursor Type and LockEdits type in RDO?

0 Answers  


What are the types of API Types.

0 Answers   TCS,


Categories