Friday 29 December 2017

writing Natural number in text file by VBscripting

Hello Friends,
in this, i am giving you code for writing Natural number in text file by VBscripting .
For using this code, Copy code from bellow attached then paste in Notepad and save it with extension *.vbs*.



//
dim num,n,fso,myfile
n=inputbox("Enter the value")
num=1
for num=1 to n step 1
set fso=createobject("scripting.filesystemobject")
set myfile=fso.opentextfile ("D:\designtechacademy.txt",8,true)
myfile.writeline num
myfile.close
next

//

Download - Click Here

No comments:

Post a Comment