43 Topics

Member Avatar for
Member Avatar for Mr.M

Hi Dw. I'm trying to read a text file. This text file has a multiply lines and what I want is that I want to separate each line or should I say I want to split each line (chop it) so that I will be able to assign these fields …

Member Avatar for Mr.M
0
598
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if there is a way to replace words from a listbox. So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg. …

Member Avatar for joshl_1995
0
332
Member Avatar for c-3po

A Dell laptop running Windows 7 Proffessional that has been in use for more than 2 years shows horizontal lines on display seconds after turning on as shown in the [video](http://youtu.be/Fl-xSnwPOCA). Why? What I did was stop using the accumulator for a few months. One day, I put the accumulator …

Member Avatar for mugabo.alain.1
0
301
Member Avatar for Birol

I have some questions regarding design pattern (DP) usage, in particular for Java developers. i) Which DPs have you used, as far as you can remember, and how often? ii) How much have they helped your development work? iii) If you work in a project group, are there group standards …

Member Avatar for prakash.kadam.5851127
0
295
Member Avatar for sujan.dasmahapa

I am writing a pure C based win32 applications. I have drawn line. Now i want to translate that line, move the line whereved user wants to move on screen. Then again I drawn another line, I am drawing multiple lines. I have created rectangle region for each line and …

Member Avatar for Ancient Dragon
0
348
Member Avatar for aianne

Hello everyone! I don't know if I am in the right place to post my problem. My apology. Well I have a problem regarding on my computer. Everytime I turn it on, white vertical bars shows and it takes more than 30 minutes to load. Very slow to start up. …

Member Avatar for Ancient Dragon
0
260
Member Avatar for java_help

Firstly, I am a beginner in Java, and I have never been into any programming before, so it seems like I need a little help to solve a task. The task is "I've a text file with the size of more than 5 MB, & I need to clear the …

Member Avatar for JamesCherrill
-2
537
Member Avatar for maddiem1994

the book is title a guide to c++ progtraming by Tim Corica Write a program that accepts a two digit number and displays the digits each on a single line. The program output should looke similar to : Enter a two digitnumber :27 The frst digit is 2 The second …

Member Avatar for Ancient Dragon
0
131
Member Avatar for bintony.ma_1

hi experts, I have a new quesiton following what I asked before: http://www.daniweb.com/software-development/python/threads/436159/python-remove-lines-when-two-specified-words-in-the-same-line I am still new python user, and hope and get your help again. my task is to do the following Python Remove current and following 3 lines when two specified words in the same line I have …

Member Avatar for bintony.ma_1
0
450
Member Avatar for primzon

Hello guys! Please help me with a little problem. I have one table(Person) where are some values. My current syntax is: SELECT Status, COUNT(Name) AS Number FROM Person WHERE Status = 'Married'; Result: Status_________Number --------------------- Married__________3 But I want to get the result for each status. That would be something …

Member Avatar for JorgeM
0
194
Member Avatar for aayushgsa

Hello, I am using a HP w1907 widescreen lcd monitor since 4 years. Now abruptly 1-2 weeks befor it showed a very thin verticle line of white colour formarly the colour used to change but now it is white only. after some days a new line appeared adjacent to it …

Member Avatar for aayushgsa
0
215
Member Avatar for kjk86

What I'm trying to do is take a source file and only pull specific lines out and display those lines to a label/textbox/etc. What's happening is I am able to pull the first line, however my loop is terminating and I do not receive the rest of the results. Here …

Member Avatar for TnTinMN
0
388
Member Avatar for Abraham.Ka

Hello! When I power on my laptop (Fujitsu Siemens Amilo Pa) the screen turns grey and after a couple of seconds vertical lines of random color start to appear all over the screen. They change their color constantly. External monitor works just fine (through VGA connection). I disassembled the laptop …

Member Avatar for beholdafrica
0
581
Member Avatar for av11453

In the java policy file what will happen if we comment out //permission java.lang.RuntimePermission "stopThread";. My understanding is that we can't call thread.stop() anywhere in the program am i rite? If we call it should say "Access denied"... If any Text area is built with AWT closing it by clicking …

Member Avatar for NormR1
0
330
Member Avatar for jumboora

Hi, I am a newbie in C#. I am trying to read a text file line by line (each line has fixed length of 128 numerical values). Text file has more than 300 lines. Now i want to select and copy each line after 5 lines (i.e., interval = 5 …

Member Avatar for Cameronsmith63
0
226
Member Avatar for valestrom

I'm working on a simple updater program that gets text from a file called version.dv that will always have a number in the form of 1.00, 1.15, 2.00 I can't figure out how to get it to read the file and save the text to a string though. Here's what …

Member Avatar for Mitja Bonca
0
207
Member Avatar for diafol

Not sure if this has been mentioned - I did search but couldn't find anything that related: Noticed this issue in Opera today. I rarely use the browser, but seems common on all pages with code. The code numbers seem to overlap. ![Capture44](/attachments/large/0/Capture44.PNG "Capture44") As you can see, just the …

Member Avatar for diafol
0
224
Member Avatar for Jake Black

Hello I have wrote a c program to solve sudokus, and i would like to know if i can draw the grid and fill it using ncurses library. i just would like to know how to control the lines and borders of boxes in ncurses thank you very much

0
160
Member Avatar for mandy011

hey there :-) I am facing a small problem, can you recommend me something? my problem is like this: now when a user searches some keywords on my website i extract data of website which includes complete page details. at a time i am fetching 10 results! so now assume …

Member Avatar for Biiim
0
215
Member Avatar for Dendari

Hello everyone. I'm working on a program which should edit a text file by adding/deleting some specific lines. By default this text file doesn't have these specific lines, so the program will add them. But I also want it to replace them if they're already in the text file. Basically …

Member Avatar for Dendari
0
204
Member Avatar for khaos64

I am very new to VB.NET, I want to create a Forms Application to load a text file that has lets say 50 lines, some of the lines are identical and those are grouped together and some same format but different make up. Have it loads it into a text …

Member Avatar for khaos64
0
683
Member Avatar for collin_ola

Hi, I am trying to split a single line of data into three separate parts so that they can be displayed in different textboxes. The data looks like this: item1_item2_item3 The code that I tried is: [CODE]Dim arrayLines() As String Dim record As String record = Subs.Text arrayLines = record.Split("_") …

Member Avatar for collin_ola
0
161
Member Avatar for Ntropy

Basically, i've been told to initialise a grid into the "canvas" section of this program i've made, I need to make a fine grid that stretches across the whole canvas horizontally and vertically, 10 x 10 pixels apart example of the code i'm editing to do this below... [CODE] class …

Member Avatar for Ntropy
0
310
Member Avatar for zck17

[CODE]string[] lines = System.IO.File.ReadAllLines(@"C:\Users\Admin\Desktop\ID.csv"); string sPattern = idBox.Text; foreach (string s in lines) { if (System.Text.RegularExpressions.Regex.IsMatch(s, sPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase)) { nameLabel.Text = "test success"; } else { nameLabel.Text = "test failure"; } }[/CODE] This is basically what I have so far. I am using Visual C#, which is probably obvious, but …

Member Avatar for thines01
0
235
Member Avatar for Tobyjug2222

Hi, I've been searching around these forums for quite a while now, and can't seem to either understand or find what I'm looking for. ^ As you can probably tell, I'm a real Novice to VB! I have a text file, that my program is always adding to it, it's …

Member Avatar for Tobyjug2222
0
296
Member Avatar for daniwaber

Hi:) I want to change the formatting of a rich text box's selected text with lines of different sizes. For example if I have written " [B]I code in VB[/B] " (any font, size 72, bold) on the first line and " [I]VB is easy[/I] " (any font, size 48, …

Member Avatar for codeorder
0
286
Member Avatar for voidyman

I want to remove blank lines (empty or with spaces and tabs) from a file from within a perl script. here's what i tried. [CODE]`sed '/^ *\$/d' $file1`;[/CODE] Does not seem to work for some reason. Any Help please?

Member Avatar for voidyman
0
855
Member Avatar for rwagnes

I am editing an image of a subway map in photoshop. I have edited out all but the colored lines and thickened them with the stroke tool. Unfortunately each line has a few gaps as well as ridges along the edges. I would like a smooth, solid line. What is …

Member Avatar for DzaNn
0
281
Member Avatar for techlawsam

Hi Im a beginner in programming C# while watching this tutorial on C# (writing a console application) the guy skipped over a couple segments in between parts of code. Where he was doing "if" statements of " if (input3 == "n" (vertical lines here) input3 == "n"). Im wondering how …

Member Avatar for techlawsam
0
2K
Member Avatar for Muhammad Anas

I am trying to create a program that, after inputing a text file, can: 1) Count number of lines in the text file. 2) Count number of words in the file. 3) Count number of characters in the file [B][U]including[/U][/B] white spaces. 4) Count number of characters in the file …

Member Avatar for Narue
0
2K

The End.