Hello, i'm trying to parse file but i dont know how i tried everything.
This is my Goal:

[21:53:51] Started
[21:53:54] Test >> this is that what i want ot parse . [Test]
[21:53:54] Something

Can someone help me.

- Regards!

Recommended Answers

All 5 Replies

Do you just mean you want to read the line from the .txt file into your program? Or something different?

Yes that is what i mean.
But to detect that text in middle

read every line as a String
for each String you want to parse, you can either write a regex to find the inner part,
or you can calculate the indexes and use the substring method

Can you just give me some very simple example of that?
I found something but that detect my word which i put not what is next of it. I tried to edit that code but nothing...

indexOf("Test >>");
indexOf("[Test]");

make sure you take into consideration the special characters, which may need an escape character.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.