Jump to content

File Handling?


lill87

Recommended Posts

Im currently making a MMORPG using PHP and I could use a little help!

 

How do I make a "file_get_contents" or some other read file code to read from a certain LINE in the file.

example: expect that "monster.php" looks like this (numbers as lines):

 

1: monstername

2: strength

3: gold

 

Now, I want to read line 2 to read the text: strength, is that possible ???

 

Please reply how to make this, or any other solutions.

 

Thanks in advance!

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/50944-file-handling/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.