473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What is the equivalent to writing to the server?

Ok, I know this is for local:
Dim sw As StreamWriter
sw = New StreamWriter("D:\files\text.txt", True)
What can I use to do the same write to the same directory, except on the
server please?
Thanks,
Trint

.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
6 838
Sure,make sure you've shared a directory on the server and you have
sufficient rights to write on that share/directory:

sw = New StreamWriter("\\ServerName\ShareName\text.txt", True)
--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

"Trint Smith" <tr********@hotmail.com> schreef in bericht
news:OS**************@tk2msftngp13.phx.gbl...
Ok, I know this is for local:
Dim sw As StreamWriter
sw = New StreamWriter("D:\files\text.txt", True)
What can I use to do the same write to the same directory, except on the
server please?
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #2
* Trint Smith <tr********@hotmail.com> scripsit:
Ok, I know this is for local:
Dim sw As StreamWriter
sw = New StreamWriter("D:\files\text.txt", True)
What can I use to do the same write to the same directory, except on the
server please?


How do you have access to the "server"?

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #3
Cor
Hi Trint,

Do you mean with "except on the server" that you want to write it on the
client computer?

Cor
Ok, I know this is for local:
Dim sw As StreamWriter
sw = New StreamWriter("D:\files\text.txt", True)
What can I use to do the same write to the same directory, except on the
server please?
Thanks,
Trint

Nov 20 '05 #4
Want to write it on the server...currently I'm writing it on my local
computer.

.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #5
Cor
Hi Trint,

But I asume you are witing with a webpage as usual, so why would this not
work on the server?

Cor
Want to write it on the server...currently I'm writing it on my local
computer.

Nov 20 '05 #6
I just tested this and it does work on the server:
sw = New StreamWriter("\\ServerName\ShareName\text.txt", True)
This writes to the local computer:
sw = New StreamWriter("d:\files\text.txt", True)

Thanks,
Trint

.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #7

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

Similar topics

54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
24
by: hjbortol | last post by:
Hi! Is the expression "a >= b" equivalent to "a - b >= 0" in C/C++? Is this equivalence an IEEE/ANSI rule? Or is this machine/compiler dependent? Any references are welcome! Thanks in...
8
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ;...
4
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
9
by: Alan Silver | last post by:
Hello, I'm converting some old VB6 code to use with ASP.NET and have come unstuck with the Asc() function. This was used in the old VB6 code to convert a character to its ASCII numeric...
4
by: Scott Johnson | last post by:
Hi I am converting some code from C# to VB.NET and I have come across a command that I can't find the VB equivalent. The C# command is 'lock' and I think it is used to lock a data type from...
30
by: James Conrad StJohn Foreman | last post by:
After 3 years of using DB2 on Linux, I'm leaving my current employers to go work for a SQL Server shop instead. In order to find my replacement, they're trying to put together a set of questions...
3
by: Todd Jaspers | last post by:
Hey guys, I am writing a web app using C#/ASP/.NET/Whatever... I'd like to have a window pop-up with some text. Basically, I'm trying to find out what the MessageBox.Show or the...
3
by: nas | last post by:
Hi..Please tell me what is the meaning of these lines static IFastString *(*pfnlr)(const char *)=0 and IFastString *(**ppfn)(const char *)=pfnlr Where IFastString is the abstract class
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...

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.