Search results

  1. D

    Seeing if a file exists

    well, for example, could you explain where to put the code?
  2. D

    Seeing if a file exists

    i did try the code you posted above, but it didnt work, if you would like to explain how to use it more in depth, please feel free to pm or post here!
  3. D

    Getting a varible on another form

    If I make a vriable on frm1 for example, how can i access it on frm2?
  4. D

    Seeing if a file exists

    thank you all, i reall like this site after only 2 days! Now it just dosent do anything... this is in a button click event, IT ONLY COPYS THE FIRST LINE!!!... im sad :( If IO.File.Exists(Application.StartupPath & "\" & Me.TextBox1.Text & ".txt") = TrueThen Dim strName AsNew...
  5. D

    Seeing if a file exists

    If IO.File.Exists("C:\whatever.txt") = True Then Dim strName As New System.IO.FileStream(Application.StartupPath & "\" & Me.TextBox1.Text & ".txt", IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite) Dim sw As New IO.StreamReader(strName) sw.ReadLine() as string sw.ReadLine() sw.ReadLine() as...
  6. D

    Seeing if a file exists

    oh lol thx
  7. D

    Seeing if a file exists

    by the opposite of that, i mean read a file, but in that way opposed to another way that you might be able to do it
  8. D

    Seeing if a file exists

    hello! I need to see if a text file exists... can someone give me the code to read a text file, or the equal opposite of this: Dim strName As New System.IO.FileStream(Application.StartupPath & "\" & Me.TextBox1.Text & ".txt", IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite) Dim sw As New...
Top Bottom