VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 309,235 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,758 people online right now. Registration is fast and FREE... Join Now!




Open Text file in VB6 using Row delimiter

 

Open Text file in VB6 using Row delimiter

Mohsin ad

30 Jun, 2009 - 04:16 AM
Post #1

New D.I.C Head
*

Joined: 30 Jun, 2009
Posts: 1

CODE
Dim sFileText As String

Dim i As Integer, R As Integer, c As Integer
Dim sFileText As String
Dim iFileNo As Integer
Dim varColumn As Variant

iFileNo = FreeFile
'open the file for reading
Open strFileName For Input As #iFileNo

Line Input #iFileNo, sFileText 'read line in a string var


Text file size is about 2 GB which i want to open, i want to open it with a row delimiter, because my machine is getting hanged when im opening it in vb6.0, i opened it in sql server 2000 it contains row delimiter {LF} where as sqlserver2k is taking {CR}{LF} by default, then later it is asking to change the row delimiter. that means the row delimiter of the txt file is not considered when it is opened. so if any body know the solution of it pls let me know....

User is offlineProfile CardPM
+Quote Post


Posts in this topic

Fast ReplyReply to this topicStart new topic

Time is now: 11/26/09 09:02AM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month