Julia LanguageInput


Syntax

  • readline()
  • readlines()
  • readstring(STDIN)
  • chomp(str)
  • open(f, file)
  • eachline(io)
  • readstring(file)
  • read(file)
  • readcsv(file)
  • readdlm(file)

Parameters

ParameterDetails
chomp(str)Remove up to one trailing newline from a string.
strThe string to strip a trailing newline from. Note that strings are immutable by convention. This function returns a new string.
open(f, file)Open a file, call the function, and close the file afterward.
fThe function to call on the IO stream opening the file generates.
fileThe path of the file to open.