43 Topics
|
|
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 … |
|
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. … |
|
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 … |
|
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 … |
|
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 … |
|
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. … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
|
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 … |
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 |
|
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 … |
|
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 … |
|
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 … |
|
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("_") … |
|
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 … |
|
[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 … |
|
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 … |
|
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, … |
|
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? |
|
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 … |
|
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 … |
|
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 … |
The End.