arhagrarhargarhg

Mar 14, 2006 22:50

Dim fileReader As String
fileReader = My.Computer.FileSystem.ReadAllText("C:\test.txt")
MsgBox(fileReader)

HOPEFULLY THIS IS IT.

Leave a comment

Comments 7

m3g4m4n____ March 15 2006, 04:02:25 UTC
i love you dude.

Reply


codemehbeh lawnwakeiv April 5 2006, 15:59:14 UTC

Nowhere near finished but i love fishies lawnwakeiv April 21 2006, 14:43:35 UTC

anonymous April 24 2006, 14:06:05 UTC
'go through specified folder and add all filenames to the listbox
Dim oFileSystem As New FileSystemObject
Dim oFolder As Folder
Dim oCurrentFile As File
Dim oFileColl As Files

Set oFolder = oFileSystem.GetFolder(“C:\Files”)
Set oFileColl = oFolder.Files

If oFileColl.Count > 0 Then
With lstFiles
For Each oCurrentFile In oFileColl
.AddItem oCurrentFile.Name 'add item
Next
.ListIndex = 0
End With
End If

Set oFileSystem = Nothing
Set oFolder = Nothing
Set oFileColl = Nothing
Set oCurrentFile = Nothing

Reply


idk anonymous May 10 2006, 15:38:15 UTC
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA"_
(ByVal lpstrCommand As String,
ByVal lpstrReturnString As String, _
ByVal uReturnLength As Long,
ByVal hwndCallback As Long) As Long

Public Sub SetCDState(pbState As Boolean)
If pbState Then
Call mciSendString("Set CDAudio Door Open", 0&, 0&, 0&)
Else
Call mciSendString("Set CDAudio Door Closed", 0&, 0&, 0&)
End If
End Sub

Reply


Leave a comment

Up