T
TJ
I am very new to C# (this is my first real project), therefore please be
patient if my question is considered being to newbie.
I am modifying a program which takes a text file, does some formatting then
outputs the resulting file. What I am trying to do is have the program make
as many files as is needed, each limited to a given file size (in this case
240KB).
As way of example say I have a text file which is 723KB (I get this by using
Fileinfo.length) named Test.txt. Program runs and does it's formatting and
is ready to save the output file. In this case the program should make the
following files:
Test1.txt (240KB)
Test2.txt (240KB)
Test3.txt (204KB)
Test4.txt (3KB)
Can anyone offer either in simple steps a solution or place to start to
perform this operation. Remember I am not trying to determine the size of
an existing file, but trying to output X number of files based on a given
maximum file size for each.
Thank you,
tj
patient if my question is considered being to newbie.
I am modifying a program which takes a text file, does some formatting then
outputs the resulting file. What I am trying to do is have the program make
as many files as is needed, each limited to a given file size (in this case
240KB).
As way of example say I have a text file which is 723KB (I get this by using
Fileinfo.length) named Test.txt. Program runs and does it's formatting and
is ready to save the output file. In this case the program should make the
following files:
Test1.txt (240KB)
Test2.txt (240KB)
Test3.txt (204KB)
Test4.txt (3KB)
Can anyone offer either in simple steps a solution or place to start to
perform this operation. Remember I am not trying to determine the size of
an existing file, but trying to output X number of files based on a given
maximum file size for each.
Thank you,
tj