Thread: How to open multiple files?

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    55

    How to open multiple files?

    I am trying to make a game shell, i think the first step of this is to open the multiple DLL's etc, what function would i use to open files together?

    Also, does anyone know if when a game loads, it opens files in any particular order?

    Thanks in advance.

  2. #2
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    I don't think there's a way to open files "together". You have multiple file pointers to multiple opened files, however.

    Also, I think the only order in which games open their files is in order of dependance. AKA, file B needs file A, so open A first, etc...

    Lastly, chance your sig, you're going to get a lot of people angry...
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    55
    Ah okay thanks.

    LOL i thought it was a funny sig.

  4. #4
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Wow, your sig is hilarious Seriously, did you think that your sig was appropriate?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  5. #5
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    LOL i thought it was a funny sig.
    Yeah, as funny as a sig that says "DON'T USE CODE TAGS"
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Well I know who to ignore from now on...
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    And yet he still hasn't changed it. Some people...
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  8. #8
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Quote Originally Posted by Salem
    Well I know who to ignore from now on...
    Moderator has right to ignore?..
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  9. #9
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    http://en.wikipedia.org/wiki/Sarcasm? Or maybe he's just a stupid Boreland %$@#...

    vart: Buddy/Ignore list
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  10. #10
    Registered User
    Join Date
    Oct 2006
    Posts
    55

    Thumbs down

    Wow, insta-flame. I can see i'll have to make a new account to be taken seriously from now on. Thanks guys!


    Quote Originally Posted by manutd
    Wow, your sig is hilarious Seriously, did you think that your sig was appropriate?
    Appropriate? If you're complaining at the size of it then why is it enabled to make sigs this large? If you're complaining at the content then i can't really see how it's inappropriate, other than the fact that senior programmers would 'lol' their way across the floor at my amateur coding.


    Quote Originally Posted by Salem
    Well I know who to ignore from now on...
    Thanks Salem, real professional.


    Quote Originally Posted by manutd
    And yet he still hasn't changed it. Some people...
    I didn't think you were being serious about it genuinely offending people.


    Quote Originally Posted by jafet
    http://en.wikipedia.org/wiki/Sarcasm? Or maybe he's just a stupid Boreland %$@#...

    vart: Buddy/Ignore list
    Again, thanks for a constructive answer to my first post.
    Last edited by Astra; 11-21-2006 at 10:31 AM.

  11. #11
    Registered User
    Join Date
    Feb 2006
    Posts
    7
    @ Astra:

    in what context are you asking the question? are you trying to modify an existing game? Happy_Reaper was correct in saying that the only real universal requirement for the order in which to open files is by following dependancies. the rest is pretty much implementation specific.

    @ Happy_Reaper, manutd, Salem:

    no offense, but you guys seriously need to relax. i'm pretty sure his sig was intended as a joke, but even if it wasn't, just because int main is the "proper" form, doesn't mean anyone who prefers to use another form is some horrible idiot worthy of ridicule and ignoring. hands at 10 and 2 is the "proper" way to steer a vehicle, but i can probably count on one hand the number of people who actually drive this way - does that make the rest (including me and most, if not all, of you) stubborn idiots too?

  12. #12
    Registered User
    Join Date
    Oct 2006
    Posts
    55
    Yeah, im trying to make a program that runs a game, without any visuals coming up, so that in effect i could make it text based.

    For example, i run my program, it takes a few seconds to load the game, i make my own login screen in this window and it connects to the servers of the game, then be able to change equipment on my character (it's an RPG) just by typing a command (that i will have preprogrammed) entering a game room etc.

    I want to create this because a guy i spoke to had already done this, and sent me a screenshot which got me interested and now i want to know how its possible to make a program to act this way.

  13. #13
    Registered User
    Join Date
    Feb 2006
    Posts
    7
    that's what i was afraid of. to be honest, i don't think you're going to find much help with that task, because you're most likely breaking the game's end-user license agreement.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows shell commands - multiple files
    By Magos in forum Tech Board
    Replies: 3
    Last Post: 02-28-2006, 01:56 AM
  2. Opening Multiple Files in sequence
    By wujiajun in forum C++ Programming
    Replies: 7
    Last Post: 01-16-2006, 08:47 PM
  3. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 02:41 AM
  4. Open files inside directory (UNIX platform)
    By swagatob in forum C Programming
    Replies: 15
    Last Post: 10-25-2004, 12:58 AM
  5. opening multiple files sequentially
    By moonwalker in forum C Programming
    Replies: 5
    Last Post: 08-20-2002, 09:57 PM