All Questions
Tagged with streamwriter vb.net
143
questions
-1
votes
1
answer
57
views
OutOfMemory Excpetion when write a large txt file vb.net
In my program recovering data from the db (there are over 500k lines) I create a path with this data and write it in a file (in the db as a where clause I insert what the date range is, the lower it ...
0
votes
2
answers
42
views
need to close after FILE.READLINES
I need to read all content of a file but keep only some of the content and append new content. So I tried to use READLINES filter the lines I need to keep then rewrite the file with the kept lines and ...
0
votes
0
answers
71
views
Does WriteAllLines delete the existing file and recreate it, or overwrite the data inside it?
I use the File.WriteAllLines() method in my project. The txt file is to be synced to a remote server (via another application, Autodesk Docs in my case) upon Save action.
I am not sure why, but using ...
1
vote
0
answers
41
views
Running cmd in a single textbox: how to put the cursor in the right place
I would like to run cmd.exe in one single textbox. When I use the code down below, everything works fine. The only thing is that the cursor is located below the prompt line, so:
C:\Users\myuser\...
0
votes
0
answers
23
views
Preserving basic application functions when using StandardInput/Output redirection
I’m trying to run an external (non-GUI) application and use RedirectStandardInput and RedirectStandardOutput to send data to and receive data from this application to a TextBox. The main problem is ...
0
votes
0
answers
29
views
Writing an ItemArray that contains NULLS
I'm trying to write a datarow out to a text file with delimiters between each value and this works fine until the SQL Table has any NULLs in it.
I can possibly just remove the NULL values from the ...
0
votes
1
answer
235
views
Writing files in VB.Net - Permissions
I have a folder that I only want Administrators having permissions to write text files to it.
I need to write text files in a program and insert it into the folder. I am currently using StreamWriter ...
0
votes
2
answers
353
views
Checks The Informations In Text File. VB.NET
I work on a project "SignInLogeIn" using Visual Basic.NET.
I save the user informations in text file.
the name of the file is "data.txt".
to create a new account in my program. you ...
1
vote
1
answer
682
views
How to remove a blank line at the end of a text file after deleting a line?
I borrowed four lines of code from Stack Overflow, regarding removing a specific line from my text file in vb.net. Here they are:
Dim delLine As Integer = 4
Dim lines As List (Of String) = File....
0
votes
2
answers
332
views
How to delete the line at the end of the text file in vb.net?
How do I ensure that I don't have an extra line at the end of the file? It's a bit special, I divide the line into three places which are respectively 17, 90 and 120 bytes (total: 227 bytes). I tried ...
0
votes
1
answer
41
views
Write a .txt with values of three listboxes
I have to export a .txt file with the values of three listboxes per each row. I've tried to to this with the following code:
Using writer = New StreamWriter(SaveFileDialog1.FileName)
For Each o As ...
0
votes
0
answers
456
views
Streamwriter for output for excel
I'm trying to export some data into an Excel file using streamwriter. I'm trying to edit what I'm using for exporting data in .csv but editing it in such way. What I want to export, in the .xls file, ...
1
vote
3
answers
65
views
Streamwriter: write two listboxes on the same row
I am trying to write, in order to export on txt file, information in two listbox with the same number of rows. I have to export them with the following format: Listbox1, Listbox2. In order to do this, ...
-2
votes
1
answer
101
views
StreamWriter randomly not outputting last line into file
I'm trying to save a class to a text file and I'm getting mixed results. Half the time the last line of the add is in the file and sometimes not. I've not been able to get a consistent output to the ...
0
votes
2
answers
84
views
VB - Writing to a file, closing and Object existance
I am writing a program that writes data to a text file at different points in my code, for example in different subroutines, functions or at different parts of subroutines (being scattered around).
...