PDA

View Full Version : reading and writing to a text file.


urgrund
05-29-2002, 07:51 AM
Hi,
I was wondering how to go about writing and reading from a text file.

The purpose being the site I'm doing up is for booking a house. Just say someone asks for "1 Jan", then that will be written on the txt file. Then if someone else asks for that date, it reads the file and finds that that already exist.

I can do this in Java but I'm not sure how this would be done for a web site. Any tutes on how to read/write to a file and to capture info from a form?

cheers

scoutt
05-29-2002, 08:37 AM
generally you will need some form of serverside code. (php, cgi, asp)

once you figure out which one your site can run then you go from there.

jonirvine
06-06-2002, 06:09 PM
Hi urgrund!

As scoutt suggested you will want to use a server side language.

Ideally however, your project sounds like a database would be more suited!

What server are you using, and what language support does it have?

Jon

Ben Rowe
06-07-2002, 02:09 AM
unfortunally you cant edit txt files with javascript, you'll need to use perl, asp, php