Hey every one... im trying to read file path from .txt
I can read it but there is one big hole in which i stepped..
So if you could help me out??
lets see the code looks like this:

Imports System.IO
Public Class Form1
    Function INIparse(ByVal TextStringToProcess As String, Optional ByVal StringDelimiter As String = "=") As String
        Return Trim$(Mid$(TextStringToProcess, InStr(TextStringToProcess, StringDelimiter) + 2))
    End Function
    Dim SR As New StreamReader("Skyoix.config")
    Dim Apache As String = "" 'Put Apache path at 1st row.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Apache = SR.ReadLine
        Dim ReturnString As String = ""
        ReturnString = INIparse(Apache)
        If System.IO.File.Exists(Apache) = True Then
            Dim startInfo As New ProcessStartInfo(Apache)
        End If
    End Sub
End Class

And config looks like this:

Apache= 'C:\Reading files\bin\Debug\path.txt';

When i click "button1", I get only this:

C:\Reading files\bin\Debug\path.txt';

and that file cant start because of " '; " how to fix it??
And i want to my config file stay like that.

Dim tempStr As String = "C:\Reading files\bin\Debug\path.txt';"
        MsgBox(tempStr.Substring(0, tempStr.Length - 2)) '// "0" = start Index, "tempStr.Length - 2" = Substring length.
commented: tnx :D +0

Thank you it works :)