15 Topics

Member Avatar for
Member Avatar for Papa_Don

Group, I'm using the following code to read down to the third line of a text file. If it meets the criteria, I need to stop the read and then delete the file. However I'm finding it difficult to do this as everything I've tried has failed. Have you some …

Member Avatar for Papa_Don
0
1K
Member Avatar for Papa_Don

Hi group, I'm attempting to use a variable (i) to read the multiple files within a folder. However this doesn't seem to be working. Can you tell me what I'm doing wrong? For i = 0 To counter Dim objReader As New System.IO.StreamReader(getRestranName(i)) If System.IO.File.Exists(folderName) Then Do While objReader.Peek() <> …

Member Avatar for Papa_Don
0
294
Member Avatar for Aaron_5

Hi folks, I've a problem when writing the contents of a file that was read using steam reader to the console window. It is only displaying part of the information that it should be showing. It should be displaying like this: http://i1370.photobucket.com/albums/ag266/Aaron_McCauley/1_zps4b8c3625.png But insted it displays like so (Notice the …

Member Avatar for Momerath
0
225
Member Avatar for rgilmore

Forgive the begginer logic, but I can't afford a new degree until I get a raise. Goal: To create a dynamic text search based on a bulleted style procedure. Objective: Use a string reader to read a richtextbox line by line checking for the start and end of bullet points …

Member Avatar for tinstaafl
0
298
Member Avatar for kjk86

What I'm trying to do is take a source file and only pull specific lines out and display those lines to a label/textbox/etc. What's happening is I am able to pull the first line, however my loop is terminating and I do not receive the rest of the results. Here …

Member Avatar for TnTinMN
0
388
Member Avatar for tapandesai007

I want to send the verification mail before the user can sign in for which I have written some code, but the problem if that it gives the error "Could not find a part of the path", but I cannot understand why it is giving the error. The error occurs …

Member Avatar for mani-hellboy
0
262
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 Scottishidiot

Hi, was wondering if it is possible to use openfiledialog to find a file and then use streamreader to read the text and use it in a variable? Got this so far but it comes up with this error: "Object reference not set to an instance of an object." the …

Member Avatar for lolafuertes
0
364
Member Avatar for RedexProGamma

Hey all (who see this), I am currently writing a Login Script, and I am having trouble making StreamReader read a specific line in a text file. This is what I have so far (not the entire script, just the reader lines): [CODE] Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Dim …

Member Avatar for RedexProGamma
0
189
Member Avatar for djjavo

Hi Am new to this and was wondering if anyone knew a solution to this problem. I am wanting to get information from a text file into different arrays. My current text file has a new line for each driver but I would like it to look something like this: …

Member Avatar for djjavo
0
248
Member Avatar for crackruckles

Hi all, i have a problem reading from a file in vb.net. I want to read from a file bit by bit so the file i write to is exactly the same, well almost because im planning on merging two files together but i can do that if i can …

Member Avatar for Unhnd_Exception
-1
459
Member Avatar for VilePlecenta

Hi all, Ive been trying to find a seek method for StreamReader. I want to be able to reverse the file buffer by a couple characters at a time. How I have everything set up. [CODE] private void SortThread() { string[] lines; string line, totalLine = null; char[] fileInput = …

Member Avatar for Momerath
0
7K
Member Avatar for bunnyali2011

Hello who knows how to create a search box in Visual Basic? I want the search box based on streamreader. In proper terms, when I will input a text, it has to read on a text file in drice C. I know the streamreader code but don't know the code …

Member Avatar for Nick Evan
0
771
Member Avatar for bunnyali2011

magine there is search box (textbox), and below there are a search button with a rich text box. My text file located in the drive C is like this: Product: Cement Size: Big: Cost: 245 Type: Construction Product: Iron Size: Big Cost: 123 Type: Consruction Product: Glass Size: Small Cost: …

Member Avatar for bunnyali2011
0
434
Member Avatar for yongj

I have an application that allows the user to open a file by clicking file -> open. The thing I'm trying to do is read the text file...but I don't know how to assign the user defined text file that the user opened to an object. I guess because I …

0
107

The End.