Hi,
I need to create multiple TXT files from splitting 1 single TXT file that should look something like this:
xyz;0;12345;data;data;data;data
xyz;0;12345;data;data;data;data
xyz;0;67890;data;data;data;data
xyz;0;67890;data;data;data;data
xyz;0;54321;data;data;data;data
xyz;0;54321;data;data;data;data
Let's say the original file was like above, and named original.txt, I would like the resulting files to be like so with the program generating the file names.
filename : 1.txt
xyz;0;12345;data;data;data;data
xyz;0;12345;data;data;data;data
filename : 2.txt
xyz;0;67890;data;data;data;data
xyz;0;67890;data;data;data;data
filename : 3.txt
xyz;0;54321;data;data;data;data
xyz;0;54321;data;data;data;data
The original filename will be constant(hardcoded) and could be automatically deleted(sent to recycle BIN) when split is done succesfully.
I hope this is enough explanation and anything I can start with would be greatly appreciated. I am an old CLIPPER programmer just starting with VB.
Thanks