470,626 Members | 2,139 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,626 developers. It's quick & easy.

reading input file

Hello, I have this problem that I need your help with : I am reading a
config file that contain the following :
[version]
2004

[type]
update

[scripts]
scripts_file1
scripts_file2
inside my scripts_file# , I have something like this :

#scripts_file1
#DO update
../script1
../script2

in the other script I have
#scripts_file2
#Do delete
../script21

what I am trying to do is read the config file and find out the type
which is "update" in this case .Then read the scripts section and
findout which file contain the update type , in this case it is
scripts_file1. So my script that is reading the config file will only
run scripts_file1 and not scripts_file2. I hope this is clear , if not
I can try to clear it more . thanks for the help.
Jul 19 '05 #1
1 1943
Sami wrote:
Hello, I have this problem that I need your help with :
<snip>
what I am trying to do is read the config file and find out the
type which is "update" in this case .Then read the scripts section
and findout which file contain the update type , in this case it is
scripts_file1. So my script that is reading the config file will
only run scripts_file1 and not scripts_file2.


You forgot to post your script. I for one would also need a clearer
description of the *nature* of the problem that you have encountered.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by fabrice | last post: by
18 posts views Thread by Michael | last post: by
3 posts views Thread by SB | last post: by
40 posts views Thread by googler | last post: by
9 posts views Thread by paczkow | last post: by
21 posts views Thread by Stephen.Schoenberger | last post: by
4 posts views Thread by tushar.saxena | last post: by
6 posts views Thread by efrenba | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.