Skip to main content

All Questions

-1 votes
1 answer
150 views

StreamWriter is not adding empty cells correctly

I have a C# program that is supposed to generate an output that looks like this: However, my output currently looks like this: This is what my code looks like at the moment: System.Text.Encoding....
Ford Burgess's user avatar
-1 votes
1 answer
90 views

c#, steamwriter only writes one line

I'm taking data from multiple text files using streamReader and putting it together into one text file using StreamWriter in c#, visual studio. Each text file has multiple lines, each line contains ...
ShadySpiritomb's user avatar
0 votes
1 answer
403 views

StreamWriter outputs ... at end of .txt file

I am writing some text from a textbox to a .txt file, and after 40 characters, it just puts a '...' Here is the code: //defining the path as a string string fileName1 = @"C:\Users\-----\AppData\...
jshh99's user avatar
  • 33
0 votes
0 answers
42 views

How to send information from a DataGridView to a textfile

I am currently working on a weather forecasting application which stores forecasts in a textfile. The functionality of capturing the information into a textfile has been complete. I have also ...
Faheem's user avatar
  • 1
0 votes
1 answer
67 views

Function is not running and creating the text file

I created the function pro: it contains the process array it calls another write function to make the file and write into it. the write function writeproc: it checks if the file at specified path ...
Lakshay Bhalla's user avatar
1 vote
0 answers
319 views

How to get Web Request saved to file

This is what I have so far. Fairly new myself. Would much appreciate the help. I am aiming to save the info into a text file created pretty much anywhere, but preferably inside temp folder or ...
ceruleanblue's user avatar
2 votes
3 answers
3k views

Overwrite/delete contents of a text file in c# .net

I'm making a program that writes a list of student objects to a text file and needs to be saved, I could either simply overwrite the contents of the file or delete the contents and rewrite the new ...
Zach R's user avatar
  • 181
0 votes
1 answer
1k views

Using a for loop with a stream writer

I am trying to create a question object with several attributes, all of which are stored on a text file and retrieved using a StreamReader. One attribute is an array Choices[]. I need said array to ...
anonymous2506's user avatar
0 votes
0 answers
3k views

Process cannot access the file because it is being used by another process VB

I am trying to write the contents of an array (temp) to a new file should the array contain values. However I receive this error: An unhandled exception of type 'System.IO.IOException' occurred ...
fox's user avatar
  • 39
1 vote
1 answer
715 views

Streamwriter adding in extra line breaks randomly when exporting from visual studio to csv c#

I have been trying for a while now to export a data table to csv in visual studio after datalogging. For some reason I get weird results when importing into excel whereas notepad is fine. It seems ...
charley's user avatar
  • 95
1 vote
2 answers
42 views

External File currently in use issue

I'm building a register program for college work using the c# console application within visual studio, and I've stumbled upon an issue with one of my external files. Apparently it's currently being ...
Daniel Gregory's user avatar
2 votes
1 answer
214 views

visual basic writing into files

when i want write into a file with visual basic its says he cant becous its already in another procces buts nothings else has op it. her is my code. Imports System.IO Public Class Form1 Private ...
yente paternotte's user avatar
1 vote
2 answers
1k views

My StreamWriter isn't giving an error, but isn't writing to the .txt file?

Thank you for all your suggestions! I'm really confused as to why this still isn't working, the 'Customers.txt' is just included in the solution and it opens it fine with the StreamReader, this is my ...
JustBenji's user avatar
2 votes
2 answers
3k views

Difficulty writing text to new file in C#, root path error, access denied

I am trying to write text to a file in my visual studio project. If the file does not exist I want to create it in the project. When I try to implement the method that writes the text to the new ...
user3395937's user avatar
0 votes
1 answer
2k views

System.Text.Encoding value

I'm getting an error with the optional argument, it says "Constant expression is required" How I can resolve the problem? Private Function Write_Text_To_File(ByVal Text_File As String, _ ...
ElektroStudios's user avatar

15 30 50 per page