国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 商水县| 涡阳县| 玉门市| 梁平县| 自治县| 襄城县| 内丘县| 宁乡县| 古浪县| 徐汇区| 宝丰县| 佛冈县| 泸水县| 定边县| 西城区| 航空| 新建县| 淮阳县| 河间市| 米泉市| 光山县| 进贤县| 永靖县| 滨州市| 凤翔县| 高淳县| 当阳市| 寻甸| 锡林郭勒盟| 临邑县| 兰考县| 丽水市| 石门县| 巫溪县| 广德县| 孟连| 娱乐| 方城县| 重庆市| 革吉县| 武川县|