Quantcast
Channel: read
Browsing latest articles
Browse All 10 View Live

Scala code to read a text file to an Array (or Seq)

Scala code to read a text file to an Array (or Seq) By Alvin Alexander. Last updated: October 20 2019 As a quick note, I use code like this read a text file into an Array, List, or Seq using Scala:...

View Article



Scala: How to read input from one file while writing output to another file

Scala: How to read input from one file while writing output to another file By Alvin Alexander. Last updated: August 28 2019 Without much introduction or discussion, here’s a Scala example that shows...

View Article

How to process every line in a file with a Unix/Linux shell script

How to process every line in a file with a Unix/Linux shell script By Alvin Alexander. Last updated: October 15 2017 Unix/Linux shell script FAQ: How do I write a Unix or Linux shell script where I...

View Article

The beginning of a Scala “FileUtils” class

The beginning of a Scala “FileUtils” class By Alvin Alexander. Last updated: September 21 2019 In production code I recommend that you use a good “Files” library like Apache Commons IO, but if you...

View Article

“I have known no wise people who didn’t read all the time”

“I have known no wise people who didn’t read all the time” By Alvin Alexander. Last updated: January 11 2018 “In my whole life, I have known no wise people (over a broad subject matter area) who...

View Article


How to read from two databases at the same time with ScalikeJdbc

How to read from two databases at the same time with ScalikeJdbc By Alvin Alexander. Last updated: February 15 2019 This example shows how to connect-to and read-from multiple databases with...

View Article

If you could give one tip for reaching heights in tech today, what would it be?

If you could give one tip for reaching heights in tech today, what would it be? By Alvin Alexander. Last updated: July 19 2018 When asked, “If you could give one tip for reaching heights in tech...

View Article

I/O in Kotlin: Reading and writing files and command line input/output

I/O in Kotlin: Reading and writing files and command line input/output By Alvin Alexander. Last updated: February 5 2019 Table of Contents Writing to STDOUT and STDERR Reading command-line input...

View Article


Some Java file utilities

Some Java file utilities By Alvin Alexander. Last updated: February 7 2019 As a bit of warning, this is some old Java code, but if you want to create your own Java file utilities (utility methods),...

View Article


Five good ways (and two bad ways) to read large text files with Scala

Five good ways (and two bad ways) to read large text files with Scala By Alvin Alexander. Last updated: October 20 2019 I’m working on a small project to parse large Apache access log files, with the...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images