寻找C#相当于scanf函数的

寻找C#相当于scanf函数的

本文介绍了寻找C#相当于scanf函数的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用code C语言在过去,我发现 scanf函数功能非常有用。
不幸的是,在C#中没有对应。

I used to code in C language in the past and I found the scanf function very useful.Unfortunately, there is no equivalent in C#.

我使用它来解析半结构化的文本文件中使用。

I am using using it to parse semi-structured text files.

我发现 scanf函数实施的。不幸的是,它看起来老不完全的。

I found an interresting example of scanf implementation here. Unfortunately, it looks old and incomplete.

有谁知道 scanf函数 C#实现?或者至少东西,将工作作为一种颠倒的String.Format

Does anyone know a scanf C# implementation ? Or at least something that would work as a reversed string.Format?

推荐答案

如果经常EX pressions不为你工作,我刚刚发布了的sscanf()替换.NET。在code可以查看和下载在<一个href=\"http://www.blackbelt$c$cr.com/Articles/strings/a-sscanf-replacement-for-net\">http://www.blackbelt$c$cr.com/Articles/strings/a-sscanf-replacement-for-net.

If regular expressions aren't working for you, I've just posted a sscanf() replacement for .NET. The code can be viewed and downloaded at http://www.blackbeltcoder.com/Articles/strings/a-sscanf-replacement-for-net.

这篇关于寻找C#相当于scanf函数的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 10:25