Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get all file contents in directory

Comments in 'Plugin Development' started by xBeastMode, Mar 21, 2016.

Thread Status:
Not open for further replies.
  1. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    I know how to get all the contents in a directory but I need to know how to get the contents from the files in that directory.
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    file_get_contents
    fread
    applqpak likes this.
  3. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    Tested, doesn't work.

    file_get_contents(*file*): failed to open stream: No such file or directory in *path* on line 6
  4. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Can you read errors instead of telling other people that their code is wrong?
  5. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    Can you no post if you won't help. I came here because I read the error already...
    Survingo likes this.
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Path is wrong. Check it again, or post it here. *Hopes it is not Windows*
  7. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    What path? The file or the path I'm checking?
Thread Status:
Not open for further replies.

Share This Page

Advertisement