Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
streamwriter
- Page 1
Streamwriter problem
Programming
Software Development
13 Years Ago
by jay_el_em
…{ File.Create("TopTimes1.txt");
StreamWriter
sw = new
StreamWriter
("TopTimes1.txt"); for (int i…bestTimes[4] = timerTime; Array.Sort(bestTimes);
StreamWriter
sw = new
StreamWriter
("TopTimes.txt"); for (int i=0…
Re: Streamwriter problem
Programming
Software Development
13 Years Ago
by jay_el_em
…{ File.Create("TopTimes1.txt");
StreamWriter
sw = new
StreamWriter
("TopTimes1.txt"); for (int i…bestTimes[4] = timerTime; Array.Sort(bestTimes);
StreamWriter
sw = new
StreamWriter
("TopTimes.txt"); for (int i=0…
Re: Streamwriter problem
Programming
Software Development
13 Years Ago
by Momerath
First thing[code] File.Create("TopTimes1.txt");
StreamWriter
sw = new
StreamWriter
("TopTimes1.txt");[/code] There is no need for… the first line,
StreamWriter
will create the file if it doesn't exist. Second…
Re: Streamwriter isnt working correctly
Programming
Software Development
15 Years Ago
by sknake
… should refactor your code to keep the [icode]
StreamWriter
[/icode] open instead of open/closing it for … to write. Call the overloaded method of [icode]
StreamWriter
[/icode] with the second parameter as "true&… append such as this: [code=c#] using (
StreamWriter
sw = new
StreamWriter
(@"C:\test.txt", true)) { sw.…
StreamWriter output coming out as 'true'
Programming
Software Development
12 Years Ago
by ahoysailor
Hi, I'm having a problem with using the
streamWriter
to write to a unicode file. Code as follows: [CODE] …(), load.end(), StartsWith1(thisString)) != load.end(); System::IO::
StreamWriter
^ WriteSpareStrings = gcnew System::IO::
StreamWriter
(L"Chinese.txt", true, System::Text…
Re: Streamwriter isnt working correctly
Programming
Software Development
15 Years Ago
by sknake
…. You should make this change though: [code=c#] using (
StreamWriter
sw = new
StreamWriter
(@"C:\Documents and Settings\chris.kennedy\Desktop\process… doing it ok"); } } [/code] This way you keep the
streamwriter
open until you complete writing the file.
StreamWriter Is Overriding Already Written Items in File
Programming
Software Development
15 Years Ago
by jhonnyboy
Hello everyone. I have a small problem. I have a
Streamwriter
writing things to a file. But when i write more … some of my code: [CODE] Dim fileOut As New IO.
StreamWriter
(fileName) fileOut.WriteLine(userId) fileOut.Close() [/CODE] userId is a…
Re: StreamWriter Is Overriding Already Written Items in File
Programming
Software Development
15 Years Ago
by Teme64
You have to create
StreamWriter
in the append mode [CODE=VB.NET]Dim fileOut As New System.IO.
StreamWriter
(fileName, True)[/CODE]
Streamwriter isnt working correctly
Programming
Software Development
15 Years Ago
by 666kennedy
… streamwrite to put each line into another file using (
StreamWriter
sw = new
StreamWriter
(@"C:\Documents and Settings\chris.kennedy\Desktop\process…
StreamWriter cutting off characters/lines
Programming
Software Development
15 Years Ago
by rimig88
I am trying to write to a file using
StreamWriter
, but for some reason it is cutting off my data. … of what is going on below: [CODE]TextWriter TestOut = new
StreamWriter
("test.txt"); for (int i = 1; i <…
StreamWriter file path
Programming
Web Development
14 Years Ago
by dawsonz
…, EventArgs e) { //Write to fileupload location System.IO.
StreamWriter
StreamWriter1 = new System.IO.
StreamWriter
(FileUpload1.PostedFile.FileName); //Writing text to the file…
Re: StreamWriter file path
Programming
Web Development
14 Years Ago
by kvprajapati
…, EventArgs e) { //Write to fileupload location System.IO.
StreamWriter
StreamWriter1 = new System.IO.
StreamWriter
(MapPath("~/file.txt")); //Writing text to…
streamwriter and listbox
Programming
Software Development
13 Years Ago
by Jonathan C
… void Form1_FormClosed(object sender, FormClosedEventArgs e) {
StreamWriter
sw_file; string s_bmfile = LBlist.Items.ToString(); sw_file = new
StreamWriter
("bookmarks.txt"); sw_file.Write…
Re: streamwriter and listbox
Programming
Software Development
13 Years Ago
by Panathinaikos22
… FileStream(@"bookmark.txt", FileMode.Create, FileAccess.Write);
StreamWriter
sw = new
StreamWriter
(fs); try { for (int x = 0; x < liBox…
Re: streamwriter and listbox
Programming
Software Development
13 Years Ago
by Jonathan C
…void Form1_FormClosed(object sender, FormClosedEventArgs e) {
StreamWriter
sw_file; string s_bmfile = ""; foreach…";"; try { sw_file = new
StreamWriter
("bookmarks.txt"); sw_file.WriteLine(s_bmfile);…
Streamwriter to write SQL query results
Programming
Software Development
14 Years Ago
by smd5049
…? All I really know is that I should be using
StreamWriter
. Does anyone have suggestions for sending, for example "SELECT…
Re: Streamwriter to write SQL query results
Programming
Software Development
14 Years Ago
by TomW
… column field and format your line object to use the
StreamWriter
.
Re: Streamwriter to write SQL query results
Programming
Software Development
14 Years Ago
by hjdaniel.sun
… 'creat a text file first dim oWriter as system.io.
streamwriter
oWrite = system.io.file.createtext("c:\sample.txt"…
Streamwriter Access Denied
Programming
Software Development
11 Years Ago
by Yorkiebar14
…\Josh\Desktop\EpiPhone\029.csv" Using sw As New
StreamWriter
(savePath) '...Rest of code... End Using What are the most…
Re: StreamWriter Flush Method Question
Programming
Software Development
13 Years Ago
by kvprajapati
Use [b]using[/b] statement, it provides a convenient syntax that ensures the correct use of [URL="http://msdn.microsoft.com/en-us/library/yh598w02(v=VS.90).aspx"]IDisposable[/URL] objects. [code] using (
StreamWriter
writer = new
StreamWriter
("file.txt")) { //statement here. } [/code]
Problem with StreamWriter
Programming
Software Development
14 Years Ago
by vt2009
…;); int i = 0; public override void GotTick(Tick tick) { //
StreamWriter
writer = new
StreamWriter
(fs); //print 10 ticks i++; if (i < 11…
Re: Problem with StreamWriter
Programming
Software Development
14 Years Ago
by Kimpl
… with a 'using' statement: [CODE] public class SterlingDebug : ResponseTemplate { private
StreamWriter
writer; private int i = 0; public override void GotTick(Tick… if (++i < 11) { D(tick.ToString()); using (writer = new
StreamWriter
(@"C:\Documents and Settings\ecoarsey\SterlingIssue10222010.txt")) { writer…
Re: Problem with StreamWriter
Programming
Software Development
14 Years Ago
by Momerath
… the 11: [code]public class SterlingDebug : ResponseTemplate { private
StreamWriter
writer; private int i = 0; public override void GotTick(…Tick tick) { using (writer = new
StreamWriter
(@"C:\Documents and Settings\ecoarsey\SterlingIssue10222010.txt")) { //print…
Re: Problem in writing to a file using StreamWriter
Programming
Software Development
14 Years Ago
by yorro
…Dim s As New System.IO.
StreamWriter
(fs, True) Try Dim Filewriter As
StreamWriter
= New
StreamWriter
("Scores.txt", True)…System.IO Private Sub Save() Try Dim Filewriter As
StreamWriter
= New
StreamWriter
("Scores.txt", True) Filewriter.WriteLine(namebox…
Phn Number Word Generator Using StreamWriter Help?
Programming
Software Development
12 Years Ago
by kiail
… the possibilities a phone number could produce using
streamwriter
. I can write to a file, but …Text += Convert.ToString(numberInput[0]); } try { using (
StreamWriter
writer = new
StreamWriter
("F:\\GeneratedWords.txt", true)) { for (int …
Re: Problem in writing to a file using StreamWriter
Programming
Software Development
14 Years Ago
by Learning78
Using [CODE]Dim s As New
StreamWriter
(fs,True)[/CODE] returns the below error. [ICODE]Overload resolution ….Write) Dim s As New System.IO.
StreamWriter
(fs, True) Try Dim Filewriter As
StreamWriter
= New
StreamWriter
("Scores.txt", True) Filewriter…
Re: Problem in writing to a file using StreamWriter
Programming
Software Development
14 Years Ago
by sknake
There is no overload of [icode]
StreamWriter
(stream, append)[/icode] because the "…, FileAccess.Write) Dim s As New System.IO.
StreamWriter
(fs) 'This gets the file create/append properties …the New Filestream() line Try Dim Filewriter As
StreamWriter
= New
StreamWriter
("Scores.txt", True) Filewriter.WriteLine(&…
Re: Phn Number Word Generator Using StreamWriter Help?
Programming
Software Development
12 Years Ago
by kiail
…); } } private void GenerateButton_Click(object sender, EventArgs e) { try { using (
StreamWriter
writer = new
StreamWriter
("F:\\log.txt", true)) { writer.WriteLine("…
Trouble with StreamWriter
Programming
Software Development
17 Years Ago
by SiPexTBC
…;; System.IO.File.Delete("C:/text.txt");
StreamWriter
realm = new
StreamWriter
("C:/text.txt"); realm.WriteLine(Go); realm…
Re: Problem in writing to a file using StreamWriter
Programming
Software Development
14 Years Ago
by yorro
… append on your code. [CODE=vb] Dim s As New
StreamWriter
(fs,True) [/CODE] Notice that there is an additional boolean…]custom error[/B]. [CODE=vb] Try Dim Filewriter As
StreamWriter
= New
StreamWriter
("Scores.txt", True) Filewriter.WriteLine(namebox.Text &…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC