IO function in VBS. - Geeks to Go Forums

Jump to content

Log in Register Register Malware removal guide How it works

IO function in VBS. Can I call the IO?

#1 IO-error

  • Group: Member
  • Posts: 276
  • Joined: 10-March 06

Posted 03 April 2007 - 02:20 AM

Hi all.

Does anybody know if and how I can use the IO function, like in VB studio '05/'06
Here is an example from how to use it in VB studio.

Dim allFileContents As New List(Of String)
For Each path As String In IO.Directory.GetFiles("C:\SavedGames\", "Name.txt", IO.SearchOption.AllDirectories)
	 allFileContents.AddRange(IO.File.ReadAllLines(path))
Next path
ListBox1.DataSource = allFileContents


So is it possible to use IO like this or in a different in VBS?
TIA

#2 stettybet0

  • Group: Technician
  • Posts: 2,579
  • Joined: 15-June 05

Posted 03 April 2007 - 09:28 AM

hmmm... where have I seen that code before? :whistling:

sorry i cant help though, I only know VB.NET, not VBS. Try googling some tutorials.

I do know that that exact code will not work in VBS, as it is a completely different language than VB.NET.

Share this topic: