2
# -*- coding: utf-8 -*-
3
# ------------------------------------------------------------------------------
4
# PyRoom - A clone of WriteRoom
5
# Copyright (c) 2007 Nicolas P. Rougier & NoWhereMan
6
# Copyright (c) 2008 Bruno Bord
7
# Copyright (c) 2008 Marco Crosio
8
# ... The other Team Members goes here ...
10
# This program is free software: you can redistribute it and/or modify it under
11
# the terms of the GNU General Public License as published by the Free Software
12
# Foundation, either version 3 of the License, or (at your option) any later
15
# This program is distributed in the hope that it will be useful, but WITHOUT
16
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License along with
20
# this program. If not, see <http://www.gnu.org/licenses/>.
21
# ------------------------------------------------------------------------------
23
# Based on code posted on ubuntu forums by NoWhereMan (www.nowhereland.it)
24
# (Ubuntu thread was "WriteRoom/Darkroom/?")
26
# ------------------------------------------------------------------------------
28
####### a first step in code reorganization :))
30
### Very Unstable code here :)) for Now
33
def open_file(filename):
34
"""Open File Atom Function"""
35
in_file = open(filename,"r")
38
return unicode(text,'utf-8')
40
def save_file(filename, text):
41
"""Save File Atom Function"""
42
out_file = open(filename,"w")
46
def print_file(device):
47
"""The Print Function Goes Here???"""
48
#TODO: Implement Printing Ability