Direct read word from a ASCII file - Forum

Forum Navigation
You need to log in to create posts and topics.

Direct read word from a ASCII file

I'm probably missing out on the classic obvious thing.

I would like to directly read the position and line of a word of a text ASCII  file.
All without having to load the file inside a variable and then search.

I don't remember if a solution or a plugin already exists natively with VisualNeoWin.

Sorry ... the age :-)

@naglieri

FileRead doesn't fit?

Quote from Vadim on February 4, 2022, 1:12 pm

@naglieri

Yes, in part FileRead does that function.

Unfortunately I have explained myself badly.
I need something that can search for a word (line and position) in a file without loading it all into a variable.
I already do a search like this  with PowerShell, but running it quickly and with a lot of PS commands VisualNeoWeb is not very fast.

@naglieri

Also, let me clarify. Are you asking about VisualNEO Web? Just a question in the VisualNEO Win section.

Quote from Vadim on February 4, 2022, 4:38 pm

@naglieri

Also, let me clarify. Are you asking about VisualNEO Web? Just a question in the VisualNEO Win section.

Sorry, Win.

Always and only Win :-)

 

Ciao Marco,

 

Take a look this link

https://archive.visualneo.com/viewtopic.php?p=11202461&hilit=Neostring#p11202461

NeoString plugin does the job.

My 0.01

 

 

Vadim has reacted to this post.
Vadim
Quote from DaviddeArgentina on February 4, 2022, 5:13 pm

Ciao Marco,

 

Take a look this link

https://archive.visualneo.com/viewtopic.php?p=11202461&hilit=Neostring#p11202461

NeoString plugin does the job.

My 0.01

 

Yes, I have that plugin.

Start studying it right away (the attached example is not complete, but it's still a beginning)
Thank you

 

 

Uploaded files:
  • You need to login to have access to uploads.

Hi @naglieri

I am about to release a new plugin with a lot of functions and one of them is that you can search text in .txt file and replace it, but I don't know if you need to replace it or only to get the line number and position of a word.

Vadim, CN_Iceman and Krakerman have reacted to this post.
VadimCN_IcemanKrakerman
Quote from AsleyCruz on February 4, 2022, 6:02 pm

Hi @naglieri

I am about to release a new plugin with a lot of functions and one of them is that you can search text in .txt file and replace it, but I don't know if you need to replace it or only to get the line number and position of a word.

I will  buy it immediately :-)

Knowing the line and position is already a good thing.
Being able to write in a certain line and position would also be the top

@naglieri

I tried it and this was output:
3,129
5,16
7,329
9,47

First number = line number
Second number = word position

I think the action will have "Match case" option. I will try to add a new action to insert text in any line and position. Any suggestion is welcome.

luishp has reacted to this post.
luishp
Quote from AsleyCruz on February 4, 2022, 9:44 pm

@naglieri

I tried it and this was output:
3,129
5,16
7,329
9,47

First number = line number
Second number = word position

I think the action will have "Match case" option. I will try to add a new action to insert text in any line and position. Any suggestion is welcome.

Well well, good job :-)

Hi @naglieri

For now the action is able to find the line and position of multiples words in one line.
See red text results in the same line:
1,13
1,219
3,129
5,16
5,392
7,329

The new action is able to insert text in a line number and a position of a file (with an option to insert text in every line).
I need to finish some others details of the plugin to release it (42 actions included for now).

Regards,

CN_Iceman has reacted to this post.
CN_Iceman

@naglieri, You tried plugin:

hpwControl ?

 

Quote from mishem on February 13, 2022, 6:51 pm

@naglieri, You tried plugin:

hpwControl ?

 

Thanks,

I have resolved all with plugin of AsleyCruz