什么是File Access组件的FSO对象?
什么是File Access组件的FSO对象?
相关考题:
【问题 2】(4 分)1.在ASP内置对象中,有两个对象与cookie操作有关。其中 (4) 用来写cookie内容, (5) 用来读cookie内容。备选答案:A.application B.asperror C.responseD.request E.session F.server2.在ASP内置组件中,使用(6)可以在主页上交替地变换广告,使用(7)可以读写服务器文件。A.Browser Capabilities B.File Access C.AD RotatorD.Content Linking E.Database Access
ActiveX组件中______组件提供可用于在计算机文件系统中检索和修改文件。A.Content RotatorB.File AccessC.Content LinkingD.Database Access
●在ASP组件中, (62)可以方便地在Web页面中插入广告的播放器。(62)A.Ad RotatorB.Browser CapabilitiesC. Database AccessD.File Access
在ASP组件中,______可以方便地在Web页面中插入广告的播放器。A.Ad RotatorB.Browser CapabilitiesC.DatabaseAccessD.File Access
在括号里写适当的内容,以便在当前目录中创建一个名为“test.txt”的文本文件。 % Dim fso , f Set fso = Server.CreateObject() ’创建FSO对象实例 Set f = fso.()() ’创建文件并返回textStream对象 f.() "Hello" f.() %
在下划线上填写适当的内容,以便向当前目录中的文本文件“test.txt”中写入数据 % Dim fso , f , rc rc = ()("txtContent") ’接收表单提交的文本数据 ’创建FSO对象实例 Set fso = ()("Scripting.FileSystemObject") ’创建文件并返回textStream对象,以覆盖方式打开文件 Set f = fso. CreateTextFile (Server.MapPath("./test.txt"),true) ’向文件中写入数据 f. WriteLine rc"()" f. Close ’关闭文件流对象 %
File类中的isDirectory()方法的作用是()。A、 判断File对象封装的是否是文件B、 判断File对象封装的是否是目录C、 判断File对象中封装的是否是根目录D、 返回值类型是boolean
在括号里填写适当的内容,以便读取当前目录中的文本文件“test.txt” % Dim fso , f Set fso = Server.CreateObject() ’创建FSO对象实例 Set f = fso.()() ’打开文件并返回textStream对象 while Not f.() ’当文件指针不在文本文件末尾时执行循环 Response.Write f.()"" ’读取一行字符发送到浏览器 Wend f.Close %
填写适当的内容,以便在当前目录中创建一个名为“test.txt”的文本文件。 %Dim fso , F ’创建FSO对象实例 Set fso = Server.CreateObject() ’创建文件并返回textStream对象 Set F = fso.CreateTextFile(Server.MapPath("./test.txt") ); F.() "Hello" ’向文件中写入字符串后换行 F.() ’向文件中输出1个空行 F.() ’关闭 TextStream对象 %
You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web application runs as CONTOSO/ASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file.You need to ensure that the application meets the following requirements:It must impersonate the user when it writes data to the file.It must run as CONTOSO/ASPNET when a user does not access the file. Which two actions should you perform? ()A、Use the following XML segment in the Web.config file. identity impersonate="false"/B、Use the following XML segment in the Web.config file. identity impersonate="true"/C、Use the following code segment to access the file. Dim wp As WindowsPrincipal = _CType(HttpContext.Current.User, WindowsPrincipal) Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent() Dim wic As WindowsImpersonationContext = wi.Impersonate()' Access the file herewic.Undo()D、Use the following code segment to access the file. Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent()Dim wic As WindowsImpersonationContext = _WindowsIdentity.Impersonate(wi.Token)' Access the file herewic.Undo()
单选题You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file. You need to ensure that only the Sales group users can access the file. What additional step should you perform?()ARemove the rights from the ASP.NET user to the file. BRemove the rights from the application pool identity to the file. CAdd the identity impersonate=true/ section to the Web.config file. DAdd the authentication mode=[None] section to the Web.config file.
多选题如果目标文件存在,下面()语句建立的TextStream对象可以读取文件。ASet tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,1,True)BSet tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,1)CSet tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt)DSet tsm=fso.OpenTextFile(C:///inetpub/wwwroot/asptemp/chapter10/test.txt,,True)
多选题File类中的isDirectory()方法的作用是()。A判断File对象封装的是否是文件B判断File对象封装的是否是目录C判断File对象中封装的是否是根目录D返回值类型是boolean