Results 1 to 6 of 6
Thread: Any Programmers?
-
04-17-2007, 06:15 PM #1
Any Programmers?
Preferbly fluent in vb 2005.....
-
04-17-2007, 09:27 PM #2
what you need?
-
04-18-2007, 12:42 AM #3
***ends what do u need made.
-
04-18-2007, 02:48 PM #4
Im designing a VB 2005 program right now and need help reading a txt file and comparing it to what the user entered in a Input box. If you can help me PM me. Please. -Thank you
-
04-19-2007, 10:43 PM #5
Reading a txt file
Imports System.IO
sContents = GetFileContents("C:\test.txt", sErr)
Public Function GetFileContents(ByVal FullPath As String, Optional ByRef ErrInfo As String = "") As String
Dim strContents As String
Dim objReader As StreamReader
Try
objReader = New StreamReader(FullPath)
strContents = objReader.ReadToEnd()
objReader.Close()
Return strContents
Catch Ex As Exception
ErrInfo = Ex.Message
End Try
End FunctionLast edited by Coop77; 04-19-2007 at 10:45 PM.
-
04-19-2007, 10:48 PM #6
Hrm.. Seems to have taken all the indenting out of that.
As far as comparing strings, you'll have to be more specific. If you just want to tell if they equal each other you can use String.Compare() or just the == comparison operator.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Zebol 50 - deca?
12-10-2024, 07:18 PM in ANABOLIC STEROIDS - QUESTIONS & ANSWERS