Locating file.

This is a discussion on Locating file. within the C Programming forums, part of the General Programming Boards category; I want to locate a fil witch I later open with fopen because if I give the path to the ...

  1. #1
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259

    Locating file.

    I want to locate a fil witch I later open with fopen because if I give the path to the file it might not be the right one on all computers so if I want it to work I most first locate the fil I want and then open the path, right? I've tested using system("whereis file") in the fopen argument didn't work it I also tryed to use a pointer to system("whereis file") witch resulted into a core dump. I've also looked in alot of tutarials but none even coment this matter.
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  2. #2
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259
    thx a ton for the help I''ll test this out
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  2. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 09:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21