Answer the question
In order to leave comments, you need to log in
How to enable thumbnails in modx galleries?
How to make thumbnails open by default in modx gallery?
Answer the question
In order to leave comments, you need to log in
1 - not obvious what it is
G
using System;
using System.IO;
namespace t_text_read_and_parsing
{
class Program
{
static void Main(string[] args)
{
var lines = File.ReadAllLines("text.txt");
foreach (var l in lines)
{
var tokens = l.Split(' ');
if (int.TryParse(tokens[0], out var a) && int.TryParse(tokens[1], out var b))
Console.WriteLine($"\t{a}\t{b}");
}
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question