Home > ASP Development > Need help creating file

Need help creating file



Hey guys. I've written a ASP intranet application that involves user administration. However, this system has to be hooked up with a 3rd party system, and it's done through text files.



E.G. if a admin wants to add a user:

a) I've written code for it to update the local database

b) the actual system (the network database, 3rd party) needs to be updated and that's through text files.



Basically, I need to create a textfile with pre-determined formatting and then put it in a local directory on the user machine. The user is then responsible for logging in and uploading the file.



My question is:



Can I and how do I create a file and folder on the local machine through ASP and then write to the .txt file?



Thanks,

~M

    
Guest


If by local machine, you mean client, there is no way using asp.

Was this answer helpful ? Yes No   
Guest


What would be the best way to do this then?

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by elijathegold
If by local machine, you mean client, there is no way using asp.
http://www.brainjar.com/asp/fileops/



they say I can craete a .txt file?



edit: I see its only for the server machine...

I take that back.

Was this answer helpful ? Yes No   
Guest


I suppose you could create the file on the server and provide the user with a link to download it....

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by elijathegold
I suppose you could create the file on the server and provide the user with a link to download it....
Good idea!!

Was this answer helpful ? Yes No   
Guest


Ok so I've decided to create folders on the server.. They will be like this:



username>>date>>time>>file.txt



How would I do this? I do NOT want the user to see the link extension because it'd be really easy to access all the other files i the username was known, i want there to be like a copy of the file or something? Like a temp file? and then the original should still be in the server, but I dont want it accessible, does that make sense?



If you can help PM me and I'll provide you with a AIM sn.

Thanks,

~M

Was this answer helpful ? Yes No   
Guest


Hi!



I cannot use the FileSystemObject on my home IIS server. When running asp scripts with FileSystemObject the browser just stops responding, as if waiting for something. I tested using the example on http://www.brainjar.com/asp/fileops/, but none of the operations work. I have tried setting permissions to the text file and folder I'm using without luck. Can someone point me in any direction from here?



Martin

Was this answer helpful ? Yes No   
Guest


This is a common issue with Norton Antivirus (and possibly others also)

Simply turn off your anti-viruses script blocking and all will be well.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved