国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > 綜合 > 正文

Code: Writing Text to a File (Visual Basic)

2024-07-21 02:20:45
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

this example writes a string to a text file using the writeline method of the streamwriter class.
example
dim file as new system.io.streamwriter("c:/test.txt")
file.writeline("here is the first line.")
file.close()
compiling the code
this example requires:
a reference to system namespace. robust programming
the following conditions may cause an exception:
the file exists and is read-only (ioexception class). the disk is full (ioexception class). the pathname is too long (pathtoolongexception class). security
this example creates a new file, if the file does not already exist. if an application needs to create a file, that application needs create access for the folder (see access control). if the file already exists, the application needs only write access, a lesser privilege. where possible, it is more secure to create the file during deployment, and only grant read access to a single file, rather than create access for a folder.
,歡迎訪問(wèn)網(wǎng)頁(yè)設(shè)計(jì)愛(ài)好者web開(kāi)發(fā)。
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 铁岭县| 乌拉特后旗| 鄢陵县| 福清市| 兴业县| 巨野县| 阳东县| 德庆县| 汤原县| 隆林| 临武县| 邢台市| 保山市| 东光县| 赫章县| 来宾市| 邵武市| 垣曲县| 松原市| 星子县| 蒲江县| 沅江市| 平定县| 宝兴县| 广宁县| 刚察县| 鸡西市| 图木舒克市| 西青区| 耒阳市| 利辛县| 罗田县| 安陆市| 雷山县| 女性| 兴仁县| 历史| 新平| 友谊县| 内江市| 葵青区|