Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-11-2004, 05:12 AM   #1
Registered: Jun 2003
Location: Sevenoaks, UK
Distribution: Ubuntu
Posts: 183

Rep: Reputation: 30
Making a Python program

So,I have to do a program which should do two things - extract a tar.gz file and add some lines of text
in some text files.The problem is adding the text.I should add a text in a file,but in a section which is determined so:
Section "Files"
here my lines of text

Then another section in this file:
Section "Module"
Load "type1" //but must first determine if it is existing
Load "freetype" ////but must first determine if it is existing

And also have to add lines here:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

So,can anybody tell me which functions should I use and then I will go to read docs.And maybe if
there are some techniques for these actions.

Thanks in advance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python: full string isn't making it through socket cs-cam Programming 1 11-26-2005 11:20 PM
Python: Need help making a simple program using arrays and loops Baix Programming 11 08-13-2005 11:26 PM
Python package fetching program datadriven Slackware 20 02-21-2005 09:55 AM
Python program to critisce SWT automatically davholla Programming 2 09-11-2003 09:12 AM
noddy program suggestions for python acid_kewpie Programming 0 07-17-2002 07:03 AM

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration