Find Jobs
Hire Freelancers

VB.NET Function to split/merge file

$30-70 USD

Cancelled
Posted over 13 years ago

$30-70 USD

Paid on delivery
Write 2 VB.NET functions that will split and merge a file. Must support large files (>8GB). Do not allocate larger memory block than 100MB at a time, reuse same buffer to avoid outofmemory exceptions. [login to view URL] splitFile(ByVal filepath As String, ByVal parts As Integer) As String [login to view URL] mergeFile(ByVal filepathList As String, ByVal destFilepath As String) As String ## Deliverables 'Function splitFile will create new files by splitting one file into selected number of parts. 'The parts will be placed in the same directory as the original file. 'Each part will be renamed as <ORIGINALNAME>_<ORIGINALEXTENSION>.segment<partnumber> 'Use function getPartName for names 'Example the file "[login to view URL]" will be splitted into [login to view URL], [login to view URL], [login to view URL]" etc 'The function returns a list of full filepaths to the parts 'Each part should have nearly equal filesize 'The function must be able to handle large files >8GB, and may not allocate larger block than 100MB. Function splitFile(ByVal filepath As String, ByVal parts As Integer) As String End Function 'Function mergeFile will create a new file by merging parts. 'The parts are named as [login to view URL], [login to view URL], [login to view URL] etc 'and the resulting file is the called "[login to view URL]" 'The function returns destFilepath which is the full filepath to the merged file Function mergeFile(ByVal filepathList As String, ByVal destFilepath As String) As String End Function 'Use this function for a basic reality check of the result Function validateSplitMerge(ByVal filepath As String) Dim destFilepath As String = Replace(filepath, ".", "_2.") Dim mergedFile As String = mergeFile(splitFile(filepath, 7), destFilepath) If getTheFileSize(filepath) <> getTheFileSize(destFilepath) Then Return "basic test failed, size of the new file is not the same as the original" Else Return "new file " & destFilepath & " has same size as original file. Please verify content of the files." End If End Function
Project ID: 3754499

About the project

12 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
12 freelancers are bidding on average $47 USD for this job
User Avatar
See private message.
$22.95 USD in 4 days
4.9 (1016 reviews)
7.3
7.3
User Avatar
See private message.
$55.25 USD in 4 days
4.9 (93 reviews)
6.4
6.4
User Avatar
See private message.
$59.50 USD in 4 days
4.8 (126 reviews)
6.0
6.0
User Avatar
See private message.
$59.50 USD in 4 days
5.0 (20 reviews)
4.3
4.3
User Avatar
See private message.
$17 USD in 4 days
4.6 (28 reviews)
3.9
3.9
User Avatar
See private message.
$59.50 USD in 4 days
3.9 (12 reviews)
4.9
4.9
User Avatar
See private message.
$38.25 USD in 4 days
5.0 (7 reviews)
2.8
2.8
User Avatar
See private message.
$55.25 USD in 4 days
5.0 (6 reviews)
2.6
2.6
User Avatar
See private message.
$59.50 USD in 4 days
4.0 (2 reviews)
2.5
2.5
User Avatar
See private message.
$42.50 USD in 4 days
5.0 (3 reviews)
1.6
1.6
User Avatar
See private message.
$59.50 USD in 4 days
4.0 (1 review)
1.1
1.1
User Avatar
See private message.
$34 USD in 4 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SWEDEN
Sweden
5.0
10
Payment method verified
Member since Sep 27, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.