VB script error

Posted on 2009-02-23
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?

Question by:SmartestVEGA
    LVL 2

    Author Comment

    i thinks some problem around here ..

    w1.WriteLine sText

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

    Author Comment

    the problem is after the spiltting the file into three


    to file1,file2,file3

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

    <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 :-(
    LVL 2

    Accepted Solution

    i use this

    w1.Write sText

    and solved the issue


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now