Solved

Overwriting form results

Posted on 2000-04-25
8
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
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…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

615 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