9 Topics

Member Avatar for
Member Avatar for Garidius

Hello to all, I'm trying to use the function below to print strings to a file. When I use Console.Write() or Console.WriteLine() the output file grows up 3MB or 4MB per seconds, but when I try to use StreamWriter or File.AppendAllText the output in the way shown below, the file …

Member Avatar for Garidius
0
573
Member Avatar for Yorkiebar14

Hello, I have been using StreamWriters for a long and time and it has always worked but now I seem to be getting an Access Denied error while trying to save to the current users Desktop... Dim savePath As String = "C:\Users\Josh\Desktop\EpiPhone\029.csv" Using sw As New StreamWriter(savePath) '...Rest of code... …

Member Avatar for Jamblaster
0
778
Member Avatar for SLMQC

I am trying to write the information below (name, employee no., etc.) to a file using StreamWriter. I'm able to enter the data, click the save button, enter/change the save location and file name and save the document. When I open the saved document, its blank and none of the …

Member Avatar for SLMQC
0
165
Member Avatar for collin_ola

Hi, The code shown below sucessfully saves text onto a line in a txt document, but using the array, I want to be able to save each piece of text on a separate line. How would I do this? Thanks in advance :) Dim filePath As String Dim objectWriter As …

Member Avatar for collin_ola
0
181
Member Avatar for ahoysailor

Hi, I'm having a problem with using the streamWriter to write to a unicode file. Code as follows: [CODE] for(int i = 1; i < 1018; ++i) { std::wostringstream integer; integer << L"IDS_STRING" << i << L"\t"; wstring thisString = integer.str(); thisString = thisString + L"\"Spare String\""; wchar_t* SpareString = …

Member Avatar for thines01
0
223
Member Avatar for csharp_user

I made a listview that display names using a streamreader. When I select a name and delete it the name that was below in the list will then take the information of the deleted name when it's displayed in the textboxes which shows name, address and email. How can I …

Member Avatar for csharp_user
0
179
Member Avatar for djjavo

Basically I use text files to hold the program data, which is loaded in to variables when the program starts. I use StreamWriter to write to the text files when they update within the program. This is fine although the writer adds a extra line when I do not want …

Member Avatar for djjavo
0
166
Member Avatar for neptunethought

I have been trying to write some strings to the notepad. I have successfullly written the first string , however when I try to add another string,It always over writes the first string I have written.Can you tell me a way where I can write strings to the next line …

Member Avatar for Mitja Bonca
0
164
Member Avatar for Dr.Cooper

So I have problem with a code I am writing, when I write a string to a text document, I get the following error; "Conversion from string "1, 1, 2, 3, 5, 8, 13, 21, 34, 55" to type 'Integer' is not valid." Please help; code below. Thanks in advance! …

Member Avatar for ANXIOUS117
0
176

The End.