东软内部材料(四)asp等相关的教学案例 

源代码在线查看: fileexists.aspx

软件大小: 20863 K
上传用户: rentianchou
关键词: asp 材料 教学案例
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
								
					if (File.Exists("C:\\Wrox\\Hello.Txt"))
						Response.Write( "C:\\Wrox\\Hello.Txt file exists");
					else
						Response.Write( "C:\\Wrox\\Hello.Txt file does not exist");
				
				
					FileInfo myfile;
				
					myfile = new FileInfo("C:\\Wrox\\Hello.Txt");
				
					if (myfile.Exists == true)
					{
						Response.Write( "C:\\Wrox\\Hello.Txt file exists");
						Response.Write( "Created: " + myfile.CreationTime );
					}
					else
						Response.Write( "C:\\Wrox\\Hello.Txt file does not exist");
				
				%>
				
							

相关资源