Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > reading input file

Reply
Thread Tools

reading input file

 
 
Sami
Guest
Posts: n/a
 
      02-16-2004
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.
 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      02-16-2004
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to restrict user from input in <input type="file"> Tarkeshwar Javascript 2 04-17-2006 11:44 AM
Getting User Input after getting Input from a file dei3cmix@uga.edu C++ 3 03-23-2006 05:01 AM
Reading file input into a string vector Dave Reid C++ 6 06-26-2005 11:32 PM
File Handle Reading Blues: Rereading a File Handle for Input Dietrich Perl 1 07-22-2004 10:02 AM
reading the stimuls from input file my24101974@yahoo.com VHDL 2 09-25-2003 03:55 PM



Advertisments