Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kellypayton

    Delete a folder?

    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??.
  2. kellypayton

    Stripping characters from text?

    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?
  3. kellypayton

    split large flatfile into numbered pages?

    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...
  4. kellypayton

    Check if info exists before adding to file?

    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...
  5. kellypayton

    Check if info exists before adding to file?

    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...
  6. kellypayton

    Add another line of data to TOP not to bottom?

    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...
  7. kellypayton

    Display line by line - desperate

    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...
  8. kellypayton

    List files in order of last modified - help

    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...
  9. kellypayton

    Reading files and displaying contents via a link

    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...

Part and Inventory Search

Back
Top