You are here: PSPad forum > English discussion forum > Re: Split a txt file with pspad

Re: Split a txt file with pspad

#1 Split a txt file with pspad

Posted by: Esgrimidor | Date: 04/30/2018 22:15 | IP: IP Logged

How can I split a txt file or similar with pspad according to a pattern ?
By example split in 6 equal parts.

Best Regards

--
Nice program indeed

Options: Reply | Quote | Up ^


#2 Re: Split a txt file with pspad

Posted by: pspad | Date: 05/01/2018 11:08 | IP: IP Logged

Hello
PSPad doesn't contains sych feature. But you can use scripting to write your own functionality what will make this job for you.

Options: Reply | Quote | Up ^


#3 Re: Split a txt file with pspad

Posted by: Esgrimidor | Date: 05/01/2018 20:52 | IP: IP Logged

How can I do that script for example.

Divide 1 to 10 equal parts eligible ?

Best Regards

--
Nice program indeed

Options: Reply | Quote | Up ^


#4 Re: Split a txt file with pspad

Posted by: pspad | Date: 05/02/2018 07:40 | IP: IP Logged

Hello

In the PSPad folder is file scripting.rtf
There is a list of commands you can use.
On the end of this file are 2 examples, how to copy text into new file and how to manipulate individual lines in editor.
You can use any scripting language supported by WSH (Windows Scripting Host) in your system. VBScript and JScript support is part of operating system.
In the PSPad folder .\Script\ is unders each language set of scripts you can get inspiration too.
In the PSpad help in chapter Customize PSpad / Script is detail description for each command, most with exapmples

Options: Reply | Quote | Up ^


#5 Re: Split a txt file with pspad

Posted by: Andreas | Date: 05/02/2018 11:14 | IP: IP Logged

If you use JavaScript as language then watch this examples how to split strings in parts.

Look at the JS-Code and the comments. You can change the code for a live preview.
codepen.io codepen.io/Aybee/pen/pVPgWG
codepen.io codepen.io/Aybee/pen/KRmWqG

Options: Reply | Quote | Up ^


#6 Re: Split a txt file with pspad

Posted by: Esgrimidor | Date: 05/03/2018 12:26 | IP: IP Logged

pspad:
Hello

In the PSPad folder is file scripting.rtf
There is a list of commands you can use.
On the end of this file are 2 examples, how to copy text into new file and how to manipulate individual lines in editor.
You can use any scripting language supported by WSH (Windows Scripting Host) in your system. VBScript and JScript support is part of operating system.
In the PSPad folder .\Script\ is unders each language set of scripts you can get inspiration too.
In the PSpad help in chapter Customize PSpad / Script is detail description for each command, most with exapmples

I'll try and comment.

--
Nice program indeed

Options: Reply | Quote | Up ^


#7 Re: Split a txt file with pspad

Posted by: Esgrimidor | Date: 05/03/2018 12:27 | IP: IP Logged

Andreas:
If you use JavaScript as language then watch this examples how to split strings in parts.

Look at the JS-Code and the comments. You can change the code for a live preview.
codepen.io codepen.io/Aybee/pen/pVPgWG
codepen.io codepen.io/Aybee/pen/KRmWqG

I'll try too. Time to learn !!!!!!

--
Nice program indeed

Options: Reply | Quote | Up ^


#8 Re: Split a txt file with pspad

Posted by: Esgrimidor | Date: 05/04/2018 21:02 | IP: IP Logged

I hope some day may be done a plugin or something.

I applied a freeware from sourceforge to split txt files with success.

But finally applied in the target forum pastebin.com no insert a large txt file.

So I only copy and paste from pspad to pastebin....

tongue sticking out smiley

My problem is that i am not a programmer. But some day i will be if necessary....

winking smiley

--
Nice program indeed

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2018 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák