Hi,

How would I achieve the some outcome here but with a text file instead of an ini file?

This is what I have tried but the input into the program does not work.

vb Code:
  1. Dim start As String
  2. Public Sub WData(settings As String)
  3.   ff = FreeFile
  4.   start = frmMain.chkStartup.Value
  5.   cap = frmMain.chkStartup.Caption
  6.   Open settings For Output As #ff
  7.   Print #ff, "[Load]" & vbCrLf & cap & " = " & start
  8.   Close #ff
  9. End Sub
  10.  
  11.     Public Sub RData(settings As String)
  12.        ff = FreeFile
  13.         Dim tmpString()  As String
  14.        Open settings For Input As #ff
  15.        Do Until EOF(ff)
  16.        Input #ff, entry
  17.        tmpString = Split(entry, " ")
  18.         If UBound(tmpString) = 0 Or UBound(tmpString) = 1 Then frmMain.chkStartup.Value = entry
  19.        Loop
  20.        Close #ff
  21.     End Sub

Thanks,


Nightwalker