Hey
I cant find any information that tells me how to delete a folder. Everything i go to seems to take me to how to delete a file. I can use the unlink command to remove a file but how do i remove a folder??.
hey
This is the code I found online which strips spaces from the end of a text field in my form before its saved to the flatfile
$strip = $form{'gametitle'};
$strip =~ s/\s*$//;
How do i change that so it strips out other characters like these " ? > @ $ & ..and so on?
Hey,
Can anyone explain to me how i can take all the info from a flatfile but split it into pages??. For example I have a file containing a list of 1000 games(line by line), instead of having all 1000 displayed on the screen at the same time..how can i split it into say pages with 100 games on...
Ive got it its ok, thank you so much for your help though.
I found a helpful piece of code online which ive altered to delete the name if it already exists:
# Read in and store file contents...
open(FH,'<gamers.txt');
my @data = <FH>;
close(FH);
# User to delete...
my...
Hey,
I use this enter the info I need into my flatfile
&send_error("UT OH I SCREWED UP!.") unless (open GFILE, ">>$config{'basepath'}/games/gamers.txt");
print GFILE "$gamer\n";
close GFILE;
$gamer contains a players name that came from a form just incase you needed that info. How can I...
Hey thank you all for your help on my other problems youve been great.
Is it possible to write data to a flatfile but add it to the top of the list instead of under the others?.
This is what i use to write to the file:
print GFILE "$gametitle\n";
but it adds the entry to the bottom of the...
Hey again,
ive got one more thing i desperatly need help with. I want to read a txt file and output it line by line. ive looked all over the net and read lord knows how many tutorials but i cant do it :'(..im stupid hehe.
this writes to the file:
&send_error("We were unable to write to the...
Hey ok i would appreciate any help you very helpful people can give me on this. below is the piece of code i use to display a list of all files within a folder. it displays them great but i want it to display them in the order they were last modified.
opendir THEDIR...
Hey geniuses
I hope someone can help me with this its doing my head in hehe. What i wish to do is to display all the .txt files within my docs folder onto the screen like this for example:
myinfo.txt
yourinfo.txt
herinfo.txt
hisinfo.txt
..etc etc
now the part that has me pulling my hair out...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.