Top "Line" questions

The shortest distance between two points.

How do you make div elements display inline?

Given this HTML: <div>foo</div><div>bar</div><div>…

css line html
C read file line by line

I wrote this function to read a line from a file: const char *readLine(FILE *file) { if (file == NULL) { printf("…

c file-io line libc
Reading specific lines only

I'm using a for loop to read a file, but I only want to read specific lines, say line #26 and #30. …

python file line
Set line spacing

How can I set line spacing with CSS, like we can set it in MS Word?

css line
Get line number while using grep

I am using grep recursive to search files for a string, and all the matched files and the lines containing …

grep line
Reading a file line by line in Go

I'm unable to find file.ReadLine function in Go. I can figure out how to quickly write one, but I …

string file parsing go line
How to add a line break in an Android TextView?

I am trying to add a line break in the TextView. I tried suggested \n but that does nothing. Here …

android textview line line-breaks
Add centered text to the middle of a <hr/>-like line

I'm wondering what options one has in xhtml 1.0 strict to create a line on both sides of text like-so: Section …

html css xhtml line vertical-alignment
Vertical line using XML drawable

I'm trying to figure out how to define a vertical line (1dp thick) to be used as a drawable. To …

android android-layout line android-xml android-drawable
How do you run a command for each line of a file?

For example, right now I'm using the following to change a couple of files whose Unix paths I wrote to …

bash loops line