Re: File question

2004-03-08 Thread Robin Sheat
On Mon, Mar 08, 2004 at 09:53:26PM -0500, Luinrandir Hernsen wrote: > Do I keep one big file with all the info.. > of several little files.. > which is better? I assume you are referring to perl CGI or something are you? If so, I'd suggest looking into using a database and designing an appropriate

RE: File question

2002-11-20 Thread Kipp, James
> > Hi everyone, > >Is there a way to open a file in a folder/s above/below > the one the > script is in? (OS is win2k), > > Thanks, > Chris. sorry to be brief but pressed for time. Try using the Cwd module. this way it is easy to tell where you are, therefore easier to cd to par

Re: File question

2002-11-20 Thread Han Fleet
Hi, if you have a file called index.txt in the folder the cgi-bin is in, you can use the following code. open (TFILEX,"../index.txt") || &error2; Use ../ to go backward in the pathway. Han. Is there a way to open a file in a folder/s above/below the one the script is in? (OS is win2k)

RE: File question

2002-11-20 Thread Timothy Johnson
Yes. You can use relative paths in Win32 just like most other OS. Just remember that "." represents the current directory and ".." represents the parent directory. Also remember that you can use the "/" slash to separate your directories when using Perl if you want. For example: open(INFILE,"

Re: file question

2002-02-10 Thread Jenda Krynicky
From: "Chris Zampese" <[EMAIL PROTECTED]> > Hi everyone, > I thought that the folowing code should save the data to the > file, and then when it was run again it should save the new data > on a newline in the same file. It saved the data once, but it > will n

RE: file question

2002-02-08 Thread Wagner-David
I took the open through the close and ran the script and each time, it added another line to the file. Running AS 5.6.0 Build 623 on w2k. Wags ;) -Original Message- From: Chris Zampese [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 15:05 To: [EMAIL PROTECTED