Share ASP.NET study notes (6) WebPages files

零下一度
Release: 2017-05-25 09:26:32
Original
1454 people have browsed it

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
Copy after login

[Related recommendations]

1. ASP.NET Free Video Tutorial

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template