从文本文件中读取 [英] read from text file

查看:78
本文介绍了从文本文件中读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好所有

如何从客户端机器中的文本文件中读取并检查它是否匹配某些值

使用c#

hello all
how can read from text file in client machine and check if it Match certain value
the checking happen in code behind asp.net using c#

推荐答案

您无法从客户端计算机读取文件,因为浏览器无法访问文件系统。



另一种方法是让用户上传该文本文件并将其保存在网络服务器上。从那里你可以很容易地阅读它。
You cannot read a file from client machine as the browsers don't have access to file system.

So another way could be that ask user to upload that text file and save it on webserver. From there you can easily read it.


这篇关于从文本文件中读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆