[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB script error

Posted on 2009-02-23
3
Medium Priority
?
187 Views
Last Modified: 2013-11-25
I am trying to split a big file into three as per the code below:

But I am getting a blank space at the end of the each three files .

Is there any way to get rid of this blank space?

Document1.txt
0
Comment
Question by:SmartestVEGA
  • 3
3 Comments
 
LVL 2

Author Comment

by:SmartestVEGA
ID: 23710803
i thinks some problem around here ..

w1.WriteLine sText

it writes a blank space line! after all writes done
0
 
LVL 2

Author Comment

by:SmartestVEGA
ID: 23711228
the problem is after the spiltting the file into three

file

to file1,file2,file3


the last line of file1,file2,file3  is like this


line1
line2
line3
<this is blank line>
<-here page break or end of file>


My problem is blank line!

How to eliminate that
its getting in all three files which i am spitted to :-(
0
 
LVL 2

Accepted Solution

by:
SmartestVEGA earned 0 total points
ID: 23711638
i use this

w1.Write sText


and solved the issue

Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses
Course of the Month20 days, 3 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question