Solved

Overwriting form results

Posted on 2000-04-25
8
282 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
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.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advice needed on CMS/coding platform 9 59
Visual Studio only works when connected to my office's network. 8 108
Migrating PC with Oracle TOAD installed. 5 43
Column Spacing 3 77
When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
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.
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

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