Help!

Discussion in 'Questions (Windows Mobile)' started by tvrman, Aug 27, 2007.

  1. tvrman

    tvrman Member Licensed User

    Hello,

    FileOpen(c1,"Setup.ini",cRead)
    r = FileRead (c1)

    Do Until r = EOF

    r = FileRead (c1)
    Msgbox(r)
    FileSearch (alFiles, r, "*.*")


    Loop


    I read an Setup file with follow contents
    c:\
    c:\
    m:\Video
    M:\Person

    after running error could not find parth of path c:\document and settings\@eof@

    i have no idea why?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should change your code to:
    Code:
    FileOpen(c1,"Setup.ini",cRead)
    r = FileRead (c1)
    Do Until r = EOF
      
    msgbox(r)
      FileSearch (alFiles, r, 
    "*.*")
      r = FileRead (c1)
    Loop
    In your code you are using r even when it is equal to EOF.
     
  3. tvrman

    tvrman Member Licensed User

    sjee i never saw this many thanks erel

    :sign0188::sign0188:
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice