Send a text file created with file.Write to the client from the server

How do I send a text file created with file.Write to the client from the server?
resource.AddFile won’t work as that will only send it during joining.
net.WriteString has a maximum length of 1024 characters.

You can send it in chunks.

Good idea. Thanks.

[editline]2nd September 2015[/editline]

Just encase anybody wanted this.
This will upload and download files from the server and client.

Server


net.Receive("blogs_downloadlogs",function(l,ply)
	-- We can only send strings to the client in 1024 character chunks.
	-- Therefore, we need to split the file in 1024 character chunks and send each one to the client to create a string of the file.
	local chunks = {}
	local logs = file.Read("bLogs.txt","DATA")
	local curLog = ""
	curLog = logs
	local cur1024 = 1
	for i=1,math.ceil(string.len(logs) / 1024),1 do
		table.insert(chunks,string.sub(curLog,1,1024))
		curLog = string.sub(curLog,1025)
	end
	for i,v in pairs(chunks) do
		net.Start("blogs_uploadlogchunk")
		net.WriteString(v)
		if (i == #chunks) then
			net.WriteString("LAST")
		end
		net.Send(ply)
	end
end)

Client


if (bLogs == nil) then
	bLogs = {}
end
local logsNotParsed = ""
bLogs.Logs = ""

local function showMenu()
	-- callback
end

net.Start("blogs_downloadlogs")
net.SendToServer()

net.Receive("blogs_uploadlogchunk",function()
	local chunk = net.ReadString(1)
	local last = net.ReadString(2)
	logsNotParsed = logsNotParsed .. chunk
	if (last == "LAST") then
		bLogs.Logs = util.JSONToTable(logsNotParsed)
		showMenu()
	end
end)