Click here to Skip to main content
15,880,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
Dim fso, MyFile, FileName, TextLine

Set fso = CreateObject("Scripting.FileSystemObject")


FileName = "D:\Users\sasemb\Desktop\read.txt"

Set MyFile = fso.OpenTextFile(FileName, ForReading,TristateFalse)

 MyFile.read(2)



WHY THIS SCRIPTING IS NOT READING THE CHARACTER??
WILL THIS READ SCRIPT GIVE AN OUTPUT THAT ITS READING THE FIRST 2 CHARCATERS??
BUT WHILE EXECUTING ITS RUNNING.

AND PLEASE TELL ME WHY DO WE USE TRI STATE TRUE AND TRISTATE FALSE

I,M AN BEGINEER,HELP ME
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900