Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > File I/O and Registry > Adding the cariage return character into my files."


Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-10-2003, 01:23 PM
sergeysagan sergeysagan is offline
Newcomer
 
Join Date: Sep 2003
Posts: 1
Question Adding the cariage return character into my files."


How do I insert the next line character into my txt-based file in Visual BAsic .NET
Here is how my code goes:

' Now, finaly lets add the actual link
FileOpen(1, LinkFileDir LinkFileName, OpenMode.Input)
' Put the contents of the file into our variable
LinkFileValue = InputString(1, LOF(1))
' Check to see where in the string we need to be.
LinkFilePos1 = InStr(1, LinkFileValue, "<tr style='mso-yfti-irow:40;mso-yfti-lastrow:yes'>")
' Manupulate the sting adding our new link
LinkFileValue = LinkFileValue.Insert(LinkFilePos1, " ")

Now this " " needs to be changed to a carriage return(Next Line, Enter Key, etc.) what would I put, I searched all of VB help and could find out how to do it.
(By the way in C it's "/n")

Thanks,
Serj
http://www.enhancementresearch.com
  #2  
Old 09-10-2003, 01:35 PM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

[ednf]..[/ednf]
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error Val Miscellaneous Languages 8 08-26-2003 09:44 AM
better string grabing from email piggybank1974 General 6 04-30-2003 05:26 PM
File System Object(FSO) Complete Ref. d1rtyw0rm Tech Discussions 24 08-31-2002 02:08 PM
adding character before and after string macgyver2 General 3 04-01-2002 09:29 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->