Solved

Overwriting form results

Posted on 2000-04-25
8
280 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
ID: 2751804
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
ID: 2751906
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
ID: 2762760
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
ID: 2762769
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 6

Expert Comment

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

Expert Comment

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

Author Comment

by:gilman01
ID: 2850214
I'm trying to stop this thread...
0
 

Author Comment

by:gilman01
ID: 2850227
Comment accepted as answer
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
net objects fusion essentials migrate site to new computer 2 138
HTML Editor That Indents Code As Illustrated 11 136
Timer 6 83
What xml editor to use. 8 84
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

911 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

21 Experts available now in Live!

Get 1:1 Help Now