ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý,¤å¦rÀɤw¦s¦b,¦ý¬O¦p­n­«·sÂмg¦p¦ó¼g?

½Ð°Ý,¤å¦rÀɤw¦s¦b,¦ý¬O¦p­n­«·sÂмg¦p¦ó¼g?

§Úªº¤å¦r¤w¦s¦b(per_f),¦ý¬O¨C¦¸­n°õ¦æµ{¦¡®É,³£¥²¶·­«·sÂмg,½Ð°Ý¦p¦ó¶}±Ò³o­ÓÀÉ®×,§Ú¹Á¸Õ¤F³\¦h¤è¦¡³£没¿ìªk,½Ð¦U¦ì«e½ú«üÂI,ÁÂÁÂ!!

fs = File.Create(per_f)
fs.Close()

Using outf_sw As StreamWriter = New StreamWriter(per_f, FileMode.Create)
End Using

¦p¤W¬O§Ú¹Á¸Õ¥Îªº¤è¦¡,¦ý¬O³£¥u¯à append ¦bÀɮ׫᭱.
V98

¶}±Ò«ü©wÀɮסA¨Ã¶Ç¦^ TextStream ª«¥ó¡A¥H¥Î¨ÓŪ¨ú¡B©Îªþ¥[¨ì¸ÓÀÉ¡C

object.OpenTextFile(filename[, iomode[, create[, format]]])¥H¤Uªºµ{¦¡½X»¡©ú¦p¦ó¨Ï¥Î OpenTextFile ¤èªk¨Ó¶}±ÒÀɮרêþ¥[¤å¦r¸ê®Æ¡G
  1. Sub OpenTextFileTest
  2.   Const ForReading = 1, ForWriting = 2, ForAppending = 8
  3.   Dim fs, f
  4.   Set fs = CreateObject("Scripting.FileSystemObject")
  5.   Set f = fs.OpenTextFile("c:\testfile.txt", ForAppending,True)
  6.   f.Write "Hello world!"
  7.   f.Close
  8. End Sub
½Æ»s¥N½X
ª`·N:Const ForReading = 1, ForWriting = 2, ForAppending = 8
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD