Hy!.
i remember that in Qbasic i could assign values to variables from a text file. (not in the code inside.). How to make the same in VB.NET?
Thanks in advanced.

QBasic! Haven't thought of that in about 15 years.

I don't recall the specific functionality that you are referring to, but in VB.NET, you could just open the file with a filestream, and parse the data out of it.

An example might be something like this:

Dim file As New IO.FileInfo(<FileName>)
        Dim Stream As IO.FileStream
        Dim FileString As String = String.Empty
        Stream = New FileStream(File.FullName, FileMode.Open)
        Dim reader As New StreamReader(Stream)
        FileString = reader.ReadToEnd
        reader.Dispose()

At this point you have the whole file as a string. You could then parse the string to find the value(s) you are looking for. It all depends on the structure of the text file.

Hope that helps.