真的很简单的C#问题 [英] Really Easy C# Question

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

问题描述

大家好,

我正在从网络位置在我的应用程序中加载XML文件-如果此网络路径在UNIX服务器上指定了XML文件,那么我有什么不同吗?文件会像普通文件一样打开吗?

Hi All,

I''m loading an XML file in my app from a network location - if this network path specifies an XML file on a UNIX server, is there anything different I have to do? Will the file open just as an ordinary file?

Thanks in advance!

推荐答案

一个UNIX文件将具有不同的回车符,除此之外,没有任何区别.如果它不起作用(为什么不问?为什么不尝试?),那么我将读取字符串并使用Environment.NewLine对\ n进行替换(来自内存,可能是\ r tho). .
A UNIX file will have different carriage returns, apart from that, there''s no difference. If it doesn''t work ( and why didn''t you try it before asking ? ), then I would read the string and do a replace on \n ( from memory, could be \r tho ), with Environment.NewLine.


这篇关于真的很简单的C#问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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