Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、何千もの行/レコードを含むテキストファイルがあり、それらは次の形式です
6242S10TH AVENUE KWANOBUHLE Y 6242
これらの単語の間のスペースも矛盾しています。そのため、このデータを 3 つの別々の列に分割して表を作成したいと思います。
これを仮定すると:
行を 3 つのスペースで分割し、値をトリムできます。C# の例:
string[] columns = line.Split(new string[]{" "}, StringSplitOptions.None) .Select(s => s.Trim()) .ToArray();