資源簡介
上課講師講的IO案例,自己敲完后改了改加了點代碼做成了看小說用的文本閱讀器;
很簡單的文本閱讀器,鼠標(biāo)滾動翻頁,單擊翻頁。添加書簽
不被老師發(fā)現(xiàn),偷偷看會兒小說,足夠了^_^
坐在最后一排的大二狗分享代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?System.Collections;
namespace?BookRead
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click_1(object?sender?EventArgs?e)
????????{
????????????if?(openFileDialog1.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????textBox1.Text?=?openFileDialog1.FileName;
????????????????//創(chuàng)建文件流
????????????????FileStream?fs?=?new?FileStream(openFileDialog1.FileName?FileMode.Open?FileAccess.Read);
????????????????//創(chuàng)建讀寫器
????????????????StreamReader?sr?=?new?StreamReader(fs)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-10-29?01:45??只想偷偷看會小說\
?????目錄???????????0??2019-10-29?01:45??只想偷偷看會小說\.vs\
?????目錄???????????0??2019-10-29?01:45??只想偷偷看會小說\.vs\BookRead\
?????目錄???????????0??2019-10-29?01:46??只想偷偷看會小說\.vs\BookRead\v15\
?????文件???????36352??2019-10-29?01:46??只想偷偷看會小說\.vs\BookRead\v15\.suo
?????目錄???????????0??2019-10-29?01:45??只想偷偷看會小說\.vs\BookRead\v15\Server\
?????目錄???????????0??2019-10-29?01:45??只想偷偷看會小說\.vs\BookRead\v15\Server\sqlite3\
?????文件???????????0??2019-10-29?01:45??只想偷偷看會小說\.vs\BookRead\v15\Server\sqlite3\db.lock
?????文件????????4096??2019-10-29?01:45??只想偷偷看會小說\.vs\BookRead\v15\Server\sqlite3\storage.ide
?????文件???????32768??2019-10-29?01:46??只想偷偷看會小說\.vs\BookRead\v15\Server\sqlite3\storage.ide-shm
?????文件??????634512??2019-10-29?01:46??只想偷偷看會小說\.vs\BookRead\v15\Server\sqlite3\storage.ide-wal
?????目錄???????????0??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\
?????目錄???????????0??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\
?????文件???????40960??2019-10-29?01:45??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\.suo
?????目錄???????????0??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\Server\
?????目錄???????????0??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\Server\sqlite3\
?????文件???????????0??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\Server\sqlite3\db.lock
?????文件????????4096??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\Server\sqlite3\storage.ide
?????文件???????32768??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\Server\sqlite3\storage.ide-shm
?????文件??????659232??2019-10-29?01:43??只想偷偷看會小說\.vs\WindowsFormsApplication1\v15\Server\sqlite3\storage.ide-wal
?????文件????????1122??2019-10-29?01:34??只想偷偷看會小說\BookRead.sln
?????目錄???????????0??2019-10-29?01:46??只想偷偷看會小說\BookRead\
?????目錄???????????0??2019-10-29?01:39??只想偷偷看會小說\BookRead\bin\
?????目錄???????????0??2019-10-29?01:39??只想偷偷看會小說\BookRead\bin\Debug\
?????文件???????35328??2019-10-29?01:38??只想偷偷看會小說\BookRead\bin\Debug\BookRead.exe
?????文件???????24064??2019-10-29?01:38??只想偷偷看會小說\BookRead\bin\Debug\BookRead.pdb
?????文件????????5632??2005-11-11?22:25??只想偷偷看會小說\BookRead\bin\Debug\BookRead.vshost.exe
?????文件???????35328??2019-10-29?01:26??只想偷偷看會小說\BookRead\bin\Debug\txtread.exe
?????文件???????22016??2019-10-29?01:26??只想偷偷看會小說\BookRead\bin\Debug\txtread.pdb
?????目錄???????????0??2019-10-29?01:22??只想偷偷看會小說\BookRead\bin\Release\
?????文件????????3868??2019-10-29?01:46??只想偷偷看會小說\BookRead\BookRead.csproj
............此處省略38個文件信息
評論
共有 條評論