
ultimategamer2k
User
Oct 21, 2001, 8:57 AM
Post #2 of 2
(359 views)
|
|
Re: A Little bit of help on editing files
[In reply to]
|
Can't Post
|
|
well, open the file like you would normally, and set the contents of the file to an array open (FILE, "/path/to/file"); @contents=<FILE>; close FILE; then print it in a text box print qq(<textarea rows="2" name="modded" cols="20">@contents</textarea>); then when the user submits it, do something like this open(FILE, ">path/to/file"); print FILE @mod_contents; close FILE; keep in mind that you are going to have to set up a variable to take the contents of the text area. if you need more clarification, email me
|