Solved

Overwriting form results

Posted on 2000-04-25
8
278 Views
Last Modified: 2013-12-24
I have a Java applet that reads info from a .txt file. I also have a simple form that allows a user to write info to the .txt file. I want to overwrite the existing info in the .txt file instead of appending to it. Is there a way to do this?
If not does anyone know a simple way I can have the client delete the file before submitting the new file? I don't want the client to have access to the server but need to allow them to update this via a browser. Any suggestions?
0
Comment
Question by:gilman01
8 Comments
 
LVL 1

Accepted Solution

by:
astyanax earned 50 total points
Comment Utility
Yes, there is a very good tool for remote editing of a file via a web browser.

The free single user version of fileman should do your job. Go to http://www.gossamer-threads.com/scripts/fileman/ and you can use the demo to create and edit a txt file. That way you could delete the old message and insert a new one.

Maybe this helps, Phil
0
 

Author Comment

by:gilman01
Comment Utility
Phil,

Thanks for responding, I really do appreciate it but I'm looking for something a little easier for the client. I already have something very similar to FileMan available on my server and don't want the client to be browsing the directory (he has a tendancy to play with stuff) thus the need for a simple form.

I found an asp solution however it's rather risky using a delete command and requiring that I change permissions (its an NT server) and my server admin is balking on the idea.

Thanks again but I need to keep looking.

Jeff
0
 
LVL 6

Expert Comment

by:Marine
Comment Utility
i can tell you a solution with asp how to delete the file or to overwrite it if you'd like.
0
 

Author Comment

by:gilman01
Comment Utility
Marine,

I've already been down that road too. I created an asp script to delete the file but apparently the way my server is setup I'd have to change the permission and my server admin is balking on the idea since we have some intense database stuff going on with the site.

I finally found a Java based calendar applet that will work for me. I'm still using the FP form but it doesn't matter that it appends since the applet will display acording to the date the user selects.

Thanks for responding - I'm trying to figure out how to kill this thread since I solved the problem with a different approach but haven't found the answer to that simple question yet <g>.

Jeff
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 6

Expert Comment

by:Marine
Comment Utility
ask the EE staff to delete it for you in Community Support
0
 
LVL 2

Expert Comment

by:sduell
Comment Utility
Accept your own comment as an answer to stop this thread.
0
 

Author Comment

by:gilman01
Comment Utility
I'm trying to stop this thread...
0
 

Author Comment

by:gilman01
Comment Utility
Comment accepted as answer
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now