Ubuntu Pastebin

Paste from Bram at Mon, 9 May 2016 14:30:31 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import os

def WriteData(module,data):
	print "1"
	path = 'var/write/' + module + '.rbx'
	print "2"
	os.mkfifo(path)
	print "3"
	fifo = open(path, "w")
	print "4"
	fifo.write("test")
	print "5"
	fifo.close()
	print "6"

		
def ReadData(module):
	with open('var/read/' + module + '.rbx', 'ab+') as file:
		data = file.read()
		file.truncate(0)
	return data
Download as text