解析本地文件 [英] Parsing a local file

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

问题描述

我有一个网络应用,需要解析位于

客户端计算机上的文件。我从查询字符串&获取文件字符串。然后解析它。

它在我的开发盒上正常工作但是当我把它放在测试上时,应用程序正在服务器上查找该文件&不在

客户机上。


我基本上是在查询字符串&使用流阅读器阅读

文件。


我确定我做的事情很糟糕......所以请让我直截了当!


史蒂夫。

I have a web app that needs to parse through a file that is located on the
client machine. I get the file string from a query string & then parse it.
It is working fine on my development box but when I put it out on the test
server the application is looking for the file on the server & not on the
client machine.

I am essentially taking the query string & using a stream reader to read the
file.

I''m sure i''m doing something whacky...so PLEASE set me straight!

Steve.

推荐答案

史蒂夫,


访问客户端上的文件非常困难,我不知道今天是怎么回事。


有一个特殊的(VBS对象)那个。
http://msdn.microsoft.com/library/de...gWithFiles.asp

Cor
Steve,

Accessing a file on a client is terrible difficult and I don''t know how it
is prevented today.

There is a special (VBS object) for that.
http://msdn.microsoft.com/library/de...gWithFiles.asp

Cor


浏览器安全性将阻止您在访问PC上读取/写入
本地文件。你是SOL,除非你用
编写一个ActiveX控件,让用户安装它,然后

让他们将浏览器安全设置设置为基本上

$不存在安全性。


-

2004和2005 Microsoft MVP C#

Robbe Morris
< a rel =nofollowhref =http://www.robbemorris.comtarget =_ blank> http://www.robbemorris.com
http://www.masterado.net/home/listings.aspx

史蒂夫 <圣*** @ discussions.microsoft.com>在消息中写道

新闻:0A ********************************** @ microsof t.com ...
Browser security is going to prevent you from reading/writing
local files on the visitors PC. You are SOL unless you
write an ActiveX control, get the users to install it, and then
have them set their browser security settings to essentially
non-existant security.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net/home/listings.aspx

"Steve" <St***@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
我有一个Web应用程序,需要解析位于
客户端计算机上的文件。我从查询字符串&获取文件字符串。然后解析它。
它在我的开发盒上正常工作但是当我把它放在测试服务器上时,应用程序正在服务器上寻找文件和放大器。不在客户端机器上。

我基本上是在查询字符串&使用流阅读器阅读
文件。

我确定我做的事情很糟糕......所以请让我直截了当!

史蒂夫。
I have a web app that needs to parse through a file that is located on the
client machine. I get the file string from a query string & then parse
it.
It is working fine on my development box but when I put it out on the test
server the application is looking for the file on the server & not on the
client machine.

I am essentially taking the query string & using a stream reader to read
the
file.

I''m sure i''m doing something whacky...so PLEASE set me straight!

Steve.



我对客户有控制权....我的意思是我可以让客户给出

访问aspnet到特定的文件夹等...这会有帮助吗?


" Steve"写道:
I do have control over the clients....i mean I can have the clients give
access to aspnet to a specific folder, etc... would this help?

"Steve" wrote:
我有一个Web应用程序需要解析位于
客户端计算机上的文件。我从查询字符串&获取文件字符串。然后解析它。
它在我的开发盒上工作正常,但是当我把它放在测试服务器上时,应用程序正在服务器上查找文件和放大器。不在客户端机器上。

我基本上是在查询字符串&使用流阅读器阅读
文件。

我确定我做的事情很糟糕......所以请让我直截了当!

史蒂夫。
I have a web app that needs to parse through a file that is located on the
client machine. I get the file string from a query string & then parse it.
It is working fine on my development box but when I put it out on the test
server the application is looking for the file on the server & not on the
client machine.

I am essentially taking the query string & using a stream reader to read the
file.

I''m sure i''m doing something whacky...so PLEASE set me straight!

Steve.



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

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