How can I read the messages of each user if there is no database message book. Fread reading can only be used to read all the messages, rather than separately reading users' messages and displaying them separately on the webpage. I don't know how to read the messages written by others. I hope you will be confused. you can use the XML document format to replace the database. in this way, you can save the message for a fixed length. [Free space, can significantly avoid database message book Problems
How to read the message of each user. Fread reading can only be used to read all the messages, but cannot separately read users' messages and then display them on the webpage,
I don't know how to read messages written by others. I hope you can give me some advice ..
------ Solution --------------------
You can replace the database with the XML document format.
------ Solution --------------------
You can save the message for a fixed length. [Free space, which can greatly increase the file location Time]
In this way, each user uses a file to record the location of the row to be written.
Fseek can directly locate the data location to be read
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.