Guys, I have a task, but because of inexperience I don’t know how to do it.

There is a file of any format on the server, it can be accessed via a link (for example: ex.com/test.txt). This file is written text. My task is to read this text.

How can I do it?

With what extension should the file be, how should info be written in it, can it be in php or just text, and how, most importantly, should I read this text?

The file will be txt for example, it will have the following:

1) alerts (text)

2) google.com (link)

  • Provide a link to the full file. Let's see if it can be parsed in the most convenient way. - YaPV
  • @yapv added to the question - shcherbuk
  • @post_zeew how to actually use? My URL and what do we have at the exit? - shcherbuk
  • @post_zeew please write a short tutorial - shcherbuk

0