473,569 Members | 2,772 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 1215

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/FSOoriFileSyste mObject.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.FileS ystemObject 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
7691
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... specifically, i can't enter the newly created directory with a username of test, and a password of test, which is what i am trying to do. also, i'm...
2
1611
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 document (so I can log everyone that visits that page.) Here is my code and how the files are organized: I know some of the code is probably...
0
1111
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 with my aspx I want to split them into 2 files and linke them together. I don't know if there is a decent way in visual studio. net can help me to...
5
1151
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 host on an internet Server provider site (eg: WebMatrixHosting) To be able to trace how it reacts, I want to write information in a log file. To do...
3
1975
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, does anyone know any third party compononet to write excel files without having it installed? My code looks like: Public Function toExcel(ByVal...
0
1068
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 a pretty good idea of how to do this but I just figured I'd throw it out there incase anyone has any sugrestions. If you don't understand what I am...
1
1545
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 yes or else it should say no. I am not getting how to do this as i am just a beginer in perl. Can anybody help me in writting the code. the files r...
6
9218
by: Java1963 | last post by:
Need help with writting an application that prompt for and read a double value representing a monetary amount. -------------------------------------------------------------------------------- Hello all, I am new to this Java stuff and, I need help in writting an application will prompt for and read a double value representing a monetary...
1
2315
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 obtained by writting a java program.Is there any class for that.Please give me an example for getting this.
0
986
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 need to create like a file.txt template for example: ------------------------------------------------ | |name: adress: ...
0
7609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.