Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

 
Reply to this topicStart new topic
> Php Filesystem, I need some methods that I can use to do this...
TheEndX
post Mar 3 2008, 11:45 PM
Post #1


New Member
*

Group: Members
Posts: 4
Joined: 27-July 07
Member No.: 146,349



I believe that PHP's filesystem will fit what I want to do but I am having trouble finding the appropiate items to do the following:

-Delete a selected line from a text file (For Example: Remove line 40 of a 100 line text file. Therefore, what was line 41 is now line 40 and there are now 99 lines in total)

-Add a line to a preexisting text file (For Example: A string is added to the end of the file [A 98 line text file becomes 99 line] or a string is inserted at a selected line of in the file[The string is made line 45 and what was previously line 45 becomes line 46])

-Edit/replace a certain line in a preexisting text file (For Example: Line 34 which says "Hello I am sam" is changed to say "This is John")

If any of you know a function or a method that can do either of these, do tell.
Go to the top of the page
 
+Quote Post
groovicus
post Mar 4 2008, 07:20 AM
Post #2


Hail Groovicus!
******

Group: Site Admin
Posts: 5,797
Joined: 5-June 04
From: Vermillion, SD
Member No.: 689



We generally don't answer questions like that, because then you don't learn anything. What we will do is look at how you think these tasks can be accomplished, and help guide you to find the solution. These are typical problems you would answer for any programming class, so it is important that you learn this yourself. smile.gif


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 29th August 2008 - 12:38 AM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.