LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-11-2004, 05:12 AM   #1
gamehack
Member
 
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
...
EndSection

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
...
EndSection

And also have to add lines here:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
*HERE I MUST ADD LINES*
</fontconfig>

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
 
  


Reply


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 02:38 PM.

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