o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Delete new lines -

How to delete new lines from a file?
Example I have a text file with 10 lines, how to make all 10 lines to be in a single line?

Input:
1
2
3
4
Output:
1234

 

Delete new lines -
How to delete new lines from a file? Example I have a text file with 10 lines, how to make all 10 lines to be in a single line? Input: 1 2 3 4 Output: 1234


[2005] Delete few lines -
How can I delete first 15 lines from txt file? (File is too big, and speed is too important to read whole file and save it without few lines )


Delete Lines -
Hey everyone have a question for ya I have a .txt file with a bunch of data that is spread out throught the document I want to write a little script that will go through this tell the bottom and look for 2 or more spaces between paragraphs and delete the spaces what code would I need t


bitblt perhaps! -
Hello, I have a picturebox with a picture in it. Users can then draw in it lines of several colors. (this is not a graphic tool or anything like it, best match would be like a map and then you can draw lines/tactics in it) The problem is I have to be able to treat each line as an o


Removing lines from the top of a TextBox -
I am writing a telnet client and must set a maximum of lines in the main RichTextBox. The RichTextBox.Lines property does not seem to contain any property or method to delete actual lines of text. Is there any way to remove entire lines from the top of the text box?


delete the last three lines -
how can i delete the last three lines from a .txt file if they was empty?


Delete blank lines -
Hello, In my vb application, I am executing a shell command and receive its outputs to a text file. The output from the shell command always has 2 lines, first line of data and 2nd line of spaces. Because of this, my output text file has alternate blank lines through out the file...


[RobDog solved it]How to find and delete empty lines in word document -
Maybe my mind got grilled, but somehow I can't make Word find empt lines in order to delete them. The plan was/is to look for all double Line-ends and than to dlete one of them. Maybe I'm not really used to those 40 degrees C in here.


Delete empty lines from a rich text box -
I have a richt text box that i want to append additonal lines of text to. all works fine unless there are empty lines at the end of the text already there. then the new line is entered one or more spaces under the existing text. Is there any way of looking for blank lines and remo


Delete Character From Textbox -
This sub is called when the delete key is pressed. It is supposed to delete the character in textbox1 where the cursor is. Private Sub DeleteMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeleteMenuItem.Click Dim ColumnIndex As Integer


MFC Lines <resolved> -
When I draw lines, I want to be able to get a preview of how the line is going to look before I release the mouse button. I can do this right now in the mousemove event but it keeps drawing the lines over and over again; you get this trail effect. Is there some way to only show the o


please help.. important -
Hi, I have a text file that I want to edit... I want to deleteall empty lines from it. I can open the file and rewrite the content (without the empty lines) to another file... but the code looks messy and SLOW! Can you please help ? Some lines are totally empty, but ot


Deleting rows from an excel file -
Hi, was hoping someone could help me with my project. Im trying to delete a specific number of rows from an excel file using: Counter = num_of_lines_read Do While (Counter > 0) And (Counter = num_of_lines_read) xlBook.Worksheets(&


how do i delete a nr of sentences and sort the lines in a .doc -
I need to write a app that can do the following : * It needs to delete a large number of sentences and delete empy space. (the doc is too large to do it manually with search) Does anyone know how to do that in VB ? * Then after the thing above is done it's something like a simple


Deleting specified line in file -
Hi, how can i delete a specified line in a file? For example i have 10 lines in a file and i want to delete the 5 line and move all the lines after one place up. thx


deleting lines -
what is the opposite of vbNewLine??? I am trying to write code that will delete lines in certain cases, but in other cases it will add data. basic if-then format.


How put txt file lines into txtbox -
Hello I have a little problem with VisualBasic 6.0. I try to read data from txt file and put into txtBox. So in case i fill fields (Name, Title,Phone,Address) and press Add then data will save in c:/txt.txt on the first 4 lines. If i do it again then data will save for followi


Delete Multiple Lines From Text File! -
How do I delete multiple lines from a text file? Actually in my web browser project, users can add different URLs to their list of Favorites. The Favorites are written in a text file as & when they get added. Like IE, the Favorites are displayed in a menu. Users can also import


Delete Table Not Really Deleting -
We are having a problem with this program where sometimes it is failing to delete a table but it does not give an error message and continues to run fine. A few lines of code after we delete a table we try to copy a table with the same name back into the database yet then we get a mess


need help indexing lines -
basically what I'm busy with is a point and click line drawing prog. i need to be able to delete one or two lines might have been drawn earlier, but i have no idea how to do this. any ideas i've attatched a simplified version of what i mean incase my explanation wasn't clear enou


[2005] Is it Possible to delete multiple lines of item with ListView -
I just want to ask if ListView supports this kind of deleting functionality wherein say I want to delete from item0 to item3, I would just declare something like remove(4)?Thanks...


Deleting the spaces between lines in a file -
How do I delete the spaces between lines in a file? I want it to search for the spaces and delete them! For example, my file looks like this: hi VIP3r was here I want it to look like this: hi VIP3R was here Thanx in advance


Creating a text box array on the fly -
I am trying to make something that needs to add and delete text boxes, rectangles, and lines on the fly with buttons, is there a way to create, delete, and check if any are missing on the fly? (Also, is there a way to send to back/bring to front through code?)


Quick Question Concerning Comment Code -
Hi, I've seen a lot of source code posted (and downloaded a lot) that has many comments that are full lines of code. I originally thought they were just there 'cause the person was too lazy to delete them, they were just old code, and never needed again. But a program I got today said


Deleting a set of records from a DB -
I am working on a piece of code to clear up data stored by inactive users on our DB. So one thing that its doing is clearing out shopping cart lines from the DB. I have in one field in the DB, a list of shopping cart lines. In another table, ordered by shopping cart line, I have t


Writing to text files.. better way! -
I'm currently using StreamWriter and StreamReader to read and write text files. SteamWriter is horrible because I can delete lines, go to specific lines, search, etc. Is there a better way to do those with VB.NET?? There has to be! -- Ethan --


Delete text after a variable in an ini file -
Hey everyone, I want to know if it is possible to delete any text that appears after a variable is defined in an ini file. For example: ProgDir=C:\Program Files\Program Name LastProfile=C:\Program Files\Program Name\Profile\Username.txt InstallDir=C:\Program Files\Program Name


delete last few lines of a textbox -
how would i go about removing the last 4 lines of a textbox? remember this is text that's already loaded into a textbox. Thanks!


confusion between the pages in asp -
in my asp page advt_delete1.asp this following lines are coded to delete the database table IdAdd=request.Form("instplan_name") rs.open "delete from inst_advt_details where id='"&IdAdd&"'",con but in another page <a href="advt_de


to remove any adreses from the browser -
Hi, does anyone know how to modify and delete any "single" line from the browser .. The only way I can do this is to go TOOLS/INTERNET OPTIONS/DELETE FILES/ But this deletes everything...whereas I only want to delete unwanted lines/adresses which I wrote by mistake....for


[2005] How to delete last lines of text -
How do I have my program delete the last line of text from a text file on the computer? Thanks!


large txt -
I need to delete the last 10 lines on the bottom of a large text file.....the last 10 lines are always the same but rewriting the file is out of the question any ideas?


Deleting Lines From RichTextBox -
If i select several lines of text in a RichTextBox and then delete using the keyboard delete key and then write the remaining text to the textfile using this code. Code: Using fw As StreamWriter = File.AppendText(Application.StartupPath & "\Code\" & Me


multiline textbox deleting lines ! -
Hi all using vb6 suppose i have a multiline textbox and the first few lines are empty ( spaces or no spaces) and then the string starts from the fifth line for example so the question is how to cancel or delete all those empty lines and make the string to start in first line.


Truncate Ascii\Text File -
OK... there are a million posts on deleting lines from text files, but none answer my question. How do I simply delete the last 3 lines of a text file? I do not want to read the text file to a string, modify it, and write it back because the text file can be 7 - 15 megs. I need


Creating a log file -
Can anybody tell me how to : - Add lines at the top of a text file - Delete lines without deleting the entire file (keeping a log file 500 K for example) Later.


RichTextBox + Delete -
I would like to know if the following is possible: Someone types text into a richtextbox. then selects a line and deletes it. It is possible to determine what the content of the delete line was? Because a change in certain lines requires databasemanipulation. Thanks in advance


[2008] Delete lines from textbox -
Hi, i have a code that reads text from a source and put the source into a textbox. But i want to delete line 7 and 6 auto. How do i do that?


Bug in VB code editor -
I'm using VB5 SP3. I'm encountering a very and the most frustrating problem for the 1st time. When I tried to change some code in VB, some lines disappears or overwrites each other. So I tried to delete the whole function to rewrite it. I can't even delete it! The whole application


Deleting from a text file -
Hiya, Can anyone tell me if it is possible to open a text file, delete some lines ( but not all Lines ) of text using a leading character as the marker, before sending to a database? Cheers skeen