This chapter introduces knowledge about using text files.
Using text files
In the previous chapters, we have learned that web page data is stored in the database.
You can also store site data in text files.
Text files used to store data are often called flat files. Common text file formats are .txt, .xml, and .csv (comma-separated values).
In this chapter, you will learn:
How to read and display data from a text file
Add a text file manually
below For the example, you will need a text file.
On your website, create an App_Data folder if you don't have one. In the App_Data folder, create a file called Persons.txt.
Add the following content to the file:
Persons.txt
George,Lucas Steven,Spielberg Alfred,Hitchcock
[Related recommendations]
2.Share ASP.NET study notes (1)--WebPages Razor
3.Share ASP.NET study notes (2) --WebPages introduction
4.Share ASP.NET study notes (3) WebPages layout
5.Share ASP.NET study notes ( 4) Folder
6.Share ASP.NET study notes (5) Global page AppStart and PageStart
The above is the detailed content of Share ASP.NET study notes (6) WebPages files. For more information, please follow other related articles on the PHP Chinese website!