脚 本 之 家 www.jb51.net
页面导航:  不限条件-->读取
本地搜索:
从.INI文件中获取字符串  var  strResult:pchar;  begin  GetPrivateProfileString(  ´windows´, // []中标题的名字  ´NullPort´, // =号前的名字  ´NIL´, // 如果没有找到字符串时,返回的默认值  strResult, //存放取得字符  100, //取得字符的允许最大长度  ´c:\forwin95\win.ini´&nb...
http://www.jb51.net//article/13815.htm
参考文章:http://chs.gotdotnet.com/quickstart/howto/doc/Xml/XmlNameSpace.aspx偶的源码:        public void bindXml(string xmlUrl)        {            Syste...
http://www.jb51.net//article/13707.htm
读取目录下所有文件的代码,可以不管文件名[code]<?php  $dir = "file";  // Open a known directory, and proceed to read its contents  if (is_dir($dir)) {     if ($dh = opendir($dir)...
http://www.jb51.net//article/13316.htm
vbs读取文件方法Function readfile(readfilepath)'On Error Resume Next    Set fs = CreateObject("Scripting.FileSystemObject")    Set file = fs.OpenTextFile(readfilepath, 1, false)    readfi...
http://www.jb51.net//article/12574.htm
[code]randomize set fso=createobject("scripting.filesystemobject") set a=createobject("scripting.dictionary") set file=fso.opentextfile("a.txt") do while file.atendofstream<>true m=m+1 a.add m,file.readline loop file.close&n...
http://www.jb51.net//article/12570.htm
'文件内容读取.[code]Function LoadFile(ByVal File)Dim objStreamOn Error Resume NextSet objStream = Server.CreateObject("ADODB.Stream")If Err.Number=-2147221005 ThenResponse.Write "<div align='center'>非常遗憾,您的主机不支持ADODB.Stream,不能使用本程序<...
http://www.jb51.net//article/11184.htm
你平时是怎么读取文件的?使用流读取。是的没错,C#给我们提供了非常强大的类库(又一次吹捧了.NET一番),里面封装了几乎所有我们可以想到的和我们没有想到的类,流是读取文件的一般手段,那么你真的会用它读取文件中的数据了么?真的能读完全么?通常我们读取一个文件使用如下的步骤:1、声明并使用File的OpenRead实例化一个文件流对象,就像下面这样       FileStream fs = File.OpenRead(filename);或者    &nbs...
http://www.jb51.net//article/10976.htm
今天在对搜索吧的程序进行utf-8修正时,发现生成的utf-8格式文档存在着乱码,原来文件create_html.asp代码如下: [code]<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% set objrs=server.createObject("Scripting.FileSystemObject") conn=server.mappath("example.xml") set Stream=objrs.opentextfile(conn,1,tr...
http://www.jb51.net//article/10573.htm
duqu.htm[code]<html><body> <span id=showImport1></span> <IE:Download ID="oDownload1" STYLE="behavior:url(#default#download)" /> <script> function onDownloadDone(downData){ document.getElementById(’showImport1’).inn...
http://www.jb51.net//article/10572.htm
[html]<script language="javascript">  function setcookie(name, value) { //设置名称为name,值为value的cookie  document.cookie = name + "=" + value  document.location.reload();  }  function setCo...
http://www.jb51.net//article/10475.htm
MemoryStream对象提供了无需进行IO就可以创建Stream的方法,XmlTextWriter和XmlReader提供快速书写和读取XML内容的方法,结合MemoryStream,就可以直接在内存中构造XmlTextWriter,并用XmlReader进行读取。 使用MemoryStream和XmlTextWriter进行书写XML,需要注意两点:XmlTextWriter.Flush操作和重设MemoryStream.Position = 0。 C# <%@ Page Language="C#"%>&n...
http://www.jb51.net//article/9412.htm
共有:86/10,当前3/9页  [首页] [上一页] 1 2 3 4 5 6 7 8 [下一页]  [尾页] 转到: