Results for the FileIO.TextFieldParser questionVB 2005: TextFieldParser -Hello all, I want parse text file> The MSDN libs shows something like this: <VBcode> Using Reader As New Microsoft.VisualBasic.FileIO.TextFieldParser(file1) Reader.TextFieldType = FieldType.FixedWidth Reader.SetFieldWidths(6, 19, 16) [2005] String.Concat generates a string but issuse a format not supported exception - I need help with this perplexing problem. The following is ment to generate the path to a text file and stream the data found there into an array. Dim y1 As String Dim y2 As String Dim y3 As String Dim path As String Dim b1 As String Dim b2 As String Dim z As Integer [2005 Tip] Read Any Text File Into A DagaGridView - I started using VB 2005 Express yesterday. I wanted to populate an Unbound DataGridView from a text file. I couldn't find an easy way to do this... I didn't want to use any data binding, databases, etc... Just wanted to read the file and put its contents into the DataGrideView. [2005] Passing currentField of from a TextFieldParser. - The following is a text file of 4 lines delimited with (,) making 8 elements and 1text string making 9 eliments in all. In my Environmental dictionary Environment and Conservation, Devoid of life non-biological. http://en.wikipedia.org/wiki/Abiotic, non-living chem [2008] FileIO.TextFieldParser question - Hi Guys, I have the following code: Code: Dim myReader As FileIO.TextFieldParser Code: If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then txtFileName.Text = OpenFileDialog1.FileName strFilename = OpenFileDialog1.FileName Problem importing delimiter text file - Hello and happy new year. I have a problem in reading a text file in VB 2005. What I want to do is to read a text file which contains delimited. eg. AA, date, value, color 1;10/10/2007;11552;blue; 2;15/12/2007;15222;red; I want the text file to imported in a winform in d [2005] Restore File From Recycle Bin - Hello again! In my program I need to be able to send them files to the recycle bin; then, there is also a need to be able to restore files from the recycle bin. Sending to the recycle bin is covered with : Code: My.Computer.FileSystem.DeleteFile(SelFileName, FileIO.U populate drop list with value from a string array - I have an array of strings in which array(11) = State. (eg. AL, MN, GA,...) I want to populate this value into a drop down list that already have 50+ states reading from a textfile. For example: If my array(11) = GA, I want the drop list selected item to be GA - Georgia. How c [2005] Check if "File In Use" & Recycling Bin - Hello I have a list of files which are to be send to the recycling bin. However using this current method is extremely slow, and often produces errors if the file is in use. Code: My.Computer.Filesystem.DeleteFile(_ FILESPATH,fileIO.UIOption.OnlyErrorDialogs, _ FileIO.R String matching with filenames - Hello again, OK, so, again, I'm looking to open reports that are created on a daily basis, and have the format YYMMDDHH.csv, YYMMDDHH being variable, depending on when they are created. I am creating a form that allows a date selection using a datepicker (short format), and I tak [2005] Parsing a textfile by Delimiters of Capital Words. - Hey Guys, I was hoping someone could help me solve a problem I'm having using vb2005 to parse a text file. I'm trying to parse the text file by Sentences that start with Words that are all Captial. Such as, IVORY is a type of Plant. The idea is parse a sentence at a time that s [2005] Question About FileIO and Lines - Hello. I have been attempting to learn Visual Basic, and the books I am using do not say anything about this. How would I go to a certain line(specified by a variable) in a text file. Thank you in advance, Dunning-Kruger Deleting - Delete Code: My.Computer.FileSystem.DeleteFile("C:\tempsysfile.html", FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin) How could i make this code to delte without asking confirmation code? tanks [2008] Making TextFieldParser work with quotation marks - Hi Guys, I'm using the following code to read some values in from a tab delimited text file: vb.net Code: Using Parser As FileIO.TextFieldParser = My.Computer.FileSystem.OpenTextFieldParser(LogFile, vbTab) Making A FSO searcher - Hi all I am in the process of making a FileSystemObject searcher which searches a rather large text document. I have so far made it to find a certain word within the text document but i want it to return the whole line that the word is found on, and then continue searching for th trying to insert records into SQL database - I am new to VS 2005/SQL. Am trying to insert records into a new SQL database from a flat file. The code below executes, but nothing actually gets put into the table. I'm sure that I am missing something obvious. Thanks in advance for your help. Here's the code... Code: {RESOLVED} [2008] FTP Errors - I am receiving the following error when I upload a file. - ex {"The value of argument 'showUI' (5) is invalid for Enum type 'UIOption'. Parameter name: showUI"} System.Exception The funny thing is that the file still uploads correctly. However, I cannot have my program Mobile app differences - Is the FILEIO namespace different on the compact framework? I want to delete a file and I'm having a hard time with referencing the syntax. [2008] Deleting directory (with wildcard) - I need to be able to delete all files and folders/subfolders within a specified directory, using a wildcard - does anyone know how I can use a wildcard in my code below? Code: My.Computer.FileSystem.DeleteDirectory(sFolderPath, Microsoft.VisualBasic.FileIO.UIOption.OnlyErrorDia Why does this happen - Folder Copy. - Hello i am trying to copy a Folder/directory to another Folder/directory, my old code works ok but i am trying to put a Progressbar, in with the new code, it will copy Small Folders ok most of the time(1 or 2 sub folders) but larger ones with this Code just seem to be trying to copy ov |