Apache VitualHost Manager

This is a discussion on Apache VitualHost Manager within the C++ Programming forums, part of the General Programming Boards category; I am writting a program for Apache that adds virtual hosts without having to manually use pico or vi. I ...

  1. #1
    Unregistered
    Guest

    Apache VitualHost Manager

    I am writting a program for Apache that adds virtual hosts without having to manually use pico or vi. I have it so it will collect information and output it to the .conf file but I am really not sure how to scan over the file to locate the section of lines that the virtual host is composed of then delete them. Can anyone help?

    Thank You!

  2. #2
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    This is a bit more application-specific than this board is geared for. If you are having problems with a language construct, then simplify it to that construct, and post a code sample. If you want to do something specifically with Apache, look for a board more geared to that topic. That or google it.

    If you are looking specifically for file access, then look up fstream on msdn, or wait until someone with a little more free time picks up this thread.

  3. #3
    Unregistered
    Guest

    Understandable...

    That's Understandable... if anyone is interested in looking at the Linux source files they can be obtained at http://www.zesna.com I might be able to figure it out if someone could tell me how I can delete a line in a text file... lets say I know it is line 6 that needs to be deleted... might anyone be able to post some sample code or point me to a site with some?

    Thanks!

  4. #4
    Nor
    Nor is offline
    h ֆhr s Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Are you asling how to phrase a file and store it a variables.
    Like a "*.ini" file?
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  5. #5
    Unregistered
    Guest

    No...

    I am asking how to delete a section of lines from a text file... I need to know how I can scan over a text file, find a key word, continue down find another key word then delete the lines with the key word(s) on them and everything in between.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Apache config
    By lruc in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 01-23-2009, 04:41 PM
  2. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 07:12 PM
  3. Call destructor from memory manager
    By The Wazaa in forum C++ Programming
    Replies: 8
    Last Post: 05-22-2007, 01:10 AM
  4. Templated Generic Resource Manager, WIP..
    By Shamino in forum C++ Programming
    Replies: 13
    Last Post: 02-19-2006, 06:29 PM
  5. Graphical interface in C ?
    By Golgot in forum C Programming
    Replies: 5
    Last Post: 11-18-2001, 04:10 PM

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