get_line_content


Description:

public string get_line_content (int line)

Gets the content of a specific line.

Convenience method that delegates to file.buffer.get_line(). Requires file.buffer to be non-null. Ensure buffer is created before use.

Line Numbering

Uses 0-based line numbers (internal format). For user-facing APIs, convert from 1-based to 0-based.

Parameters:

line

Line number (0-based)

Returns:

Line content, or empty string if not available