Results 1 to 6 of 6

Thread: File Exist [Resolved]

  1. #1

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    File Exist [Resolved]

    I haven't worked with files in a while and seemed to have forgoten how to check if a file exists or not.

    The purpose of this is for my game I'm working on and I'm adding a snapshot feature. It'll save into snaps like this "SNAP0000.bmp". Plus I'm gonna have a variable that'll increment everytime you take a snapshot. It'll first start off at 0. Then it'll check if SNAP0000.bmp exists. If it does, it'll ignor it and increment to the next number. If it doesn't, it'll save the file. Thanks in advance.

  2. #2

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: File Exist

    Code:
    If Len(Dir$("c:\snap001.bmp)) = 0 Then
    	MsgBox "File Not Found!"
    End If
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: File Exist

    Sorry but I'm not using pictureboxes. I'm using DirectX8

    Thanks crptblade, that helped

  5. #5

  6. #6

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: File Exist

    Yeah yours worked too. And for your viewing pleasure, here is what I got!!!
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width