Member Avatar
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. …
by joshl_1995 22 in Software Development ()
Member Avatar
std::endl vs \n Are any particular one which should be used at specific times? I understand endl flushes the stream (although i'm not 100% what this means) while \n is simply a newline.
by Tycellent in Software Development ()
Member Avatar
Hi everyone, Does anyone have an idea of how to skip a line in a JTextField? In System.out.println, I would normally type n but it didn't work for me when I used it in a textfield: text1.setText("n"+coloumn[counter]); where the output displays well as desired excpet that it doesn't skip a …
by DrEinstein in Software Development ()
Member Avatar
I'm trying to take a file that looks like this: And get it to look like this taxon1 ACCGTGGATCCCTATTGATTGGATATTATC I'm using a python script, so far this is what I have: The script removes the '\n' at the end of each line, but it still won't join the lines all …
by laver68xo in Software Development ()
Member Avatar
Hi forum, I've got a question for the pros. I am making a program that has map<String, String> map = new TreeMap<String, String>(); and a Scanner to read a file contains some data which is assigned to map.put(); method. The data is something like this: UK USA Canada Australia etc. …
by dreamslct 13 in Software Development ()
Member Avatar
Hello Everyone..!! I am beginner at PHP. I would like to have solution for "\n" in textfile php. Thanks a lot for your time in advanced.
by PriteshP23 in Web Development ()
Member Avatar
Here is the output: The value entered for the first question should be assigned to element 0 in the faceValue array. The value entered for the second question should be assigned to element 1 in the faceValue array. The value entered for the third question should be assigned to element …
by CharlieBrook in Software Development ()
Member Avatar
Hi, I have a form which saves a string of text to a database with rawurlencode() which adds things like space characters (%20) and newline characters (%0D%0A), however, when I use rawurldecode() on this string it only decodes the space characters, and ignores all the newlines, by simply printing them …
by Red Dragon in Web Development ()
Member Avatar
I've read many threads on how to remove a new line character '\n' using fgets()-- however, how would one go about removing a new line character simply by using getchar() ?
by dbsp in Software Development ()
Member Avatar
This is homework. I have to write a bash shell script using awk to process three delimited text files and produce a formatted report. The three files are as follows: GRADES file John Bunyan:90:100:75:60 Maria Montessori:80:90:60:82 Alice Cooper:75:80:54:47 Harvey Mudd:89:45:89:95 PROJECTS file test1:30 test2:30 paper2:20 exam:50 LEVELS file A:89.5 B:79.5 …
by iamthesgt in Software Development ()
Member Avatar
Hello there, Currently doing some work for my coursework. I've noticed the "\n" is obviously the new line function or whatever you guys call it, but would you understand what I mean when I say it creates too much of a new line? For example, I want the newline to …
by AdampskiB in Software Development ()
Member Avatar
Hi, i'm trying to implement a print function and i can print a single string out but i'm having trouble configuring the page setup properly, mainly moving to a new line when the margin of the page is reached and moving to a new lines for each string in a …
by ChrisHunter 138 in Software Development ()
Member Avatar
I wrote a program to analyze a log file for a machine that my company repairs. The program that runs the machine spits output into a text file (.log) and my program will analyze it and return the results of different calculations to the user. The log file idealy looks …
by weasel7711 in Software Development ()
Member Avatar
I'm having a problem with IE, while it works in FF: the var doesn't save any \n aka enter. I have the following code: &lt;script type="text/javascript"&gt; function addu() { var message = window.prompt("Enter the text that needs to be underlined below"); if (message != "" &amp;&amp; message != "null") { …
by Graphix 68 in Web Development ()