I have a file in which the necessary lines that need to be extracted are stored, the following code works to extract one part of the record:
string TLine = File.ReadAllLines(Text.df)[3].Split('"')[1]; Then I just write the found lines to the file.
And I also need to read the remaining lines of ReadAllLines(Text.df)[11].Split('"')[1]
They can be combined somehow so that you can read all the data from the desired column [3].Split('"')[1] и [11].Split('"')[7]
How can I read all the data I need from the right post?
Here is what is stored in the file:
"Logins" { "895298918746" { "Name" "UserName" "City" "Moskow" "Date" "12/10/18" "Num" "14" "Timer" "99999999" } "895283716281" { "Name" "UserName" "City" "Moskow" "Date" "12/10/18" "Num" "14" "Timer" "99999999" } } I need to get the value 895298918746 and the UserName value from the Name field
Etc. 895283716281 and UserName value from the Name field
File.ReadAllLines(Text.df)resultFile.ReadAllLines(Text.df)into a variable and then access it. What is the problem? - Andrei NOP