473,503 Members | 12,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

writting files

Hiii people.

I have a question. Is it possible to write a text file using JavaScript?

mmm... and it's all, it's a very simple question... and I am afraid of the
answers :s

Ok, best regards from Palma de Mallorca
Fernando
Oct 20 '05 #1
2 1206

Fernando Fernández wrote:
Is it possible to write a text file using JavaScript?


Yes, when there are host objects available or creatable to do so. You
can certainly do it for instance with JavaScript in WSH or ASP or HTA.
See
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/FSOoriFileSystemObject.asp>
Inside the browser such host objects for file system access are usually
not provided or only provided under certain restrictions (e.g. when the
HTML document with the script is also being loaded from the local file
system).

--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 20 '05 #2

Fernando Fernández wrote:
Hiii people.

I have a question. Is it possible to write a text file using JavaScript?

mmm... and it's all, it's a very simple question... and I am afraid of the
answers :s

Ok, best regards from Palma de Mallorca
Fernando

Mozilla/Firefox uses XPCOM/XPCONNECT technology for file handling. It
is however a bit more fiddly than the Scripting.FileSystemObject for
IE. See:-

http://www.captain.at/programming/xul/
http://www.xulplanet.com/

Julian

Oct 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7686
by: yawnmoth | last post by:
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... ...
2
1607
by: Robizzle | last post by:
I'm working on a very simple script that logs the ip address, time of hit, and os/browser information and currently it works every time. The problem is getting the script included into my html...
0
1108
by: Hai Nguyen | last post by:
Hi everyone I'm writting a javascript for my validators. Some of them will be validated or server side, some of them will be validated on client side. Since I don't want to mix my javascript...
5
1147
by: José Joye | last post by:
Hello, I know the problem I'm having has been mentioned several time... However, the answers provided are not crystal clear. Here is my problem: I'm building a small web service that I will...
3
1971
by: Boris Condarco | last post by:
Hi gurus, I'm using excel 2000 to show data that comes from datagrid. The problem is that for any reason the asp.net application maintains the excel open, even though, i do close it. Besides,...
0
1064
by: noridotjabi | last post by:
As some of you may know I am working on a mini operating system. For it I need to write a filesystem that just apears to the current OS that is running my mini-OS as a large file. I think I have...
1
1535
by: itsjyotika | last post by:
Hello Everyone, I need to read data from a CVS file(i created it from micosoft excel) and then need to match it with the one of the date from the command line.If the date is there then it should say...
6
9211
by: Java1963 | last post by:
Need help with writting an application that prompt for and read a double value representing a monetary amount. -------------------------------------------------------------------------------- ...
1
2309
by: rahulbsbs | last post by:
Sir how can i get the ip address of the remote system by writting a java code,ie i want to get ip address of the remote system that is connected to my server computer ,the ip address must be...
0
981
by: marinhof | last post by:
hi i need some guidance.. this is the situation im working on web app using Visual studio 2003 working with C# and asp.net the database is managed by sql studio managmnet 2005.. the thing is i...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.