Published on STEMRobotics (https://stemrobotics.cs.pdx.edu)

Home > Files and File Input/output

Files and File Input/output

Submitted by Richard Corn on 23 September, 2016 - 10:41

Writing data to and reading data from disk files is a common activity for Java programs in many situations. However, file input/output (I/O) is rarely used in the programs created for robots on the platforms we are working with. As such, and given that file I/O is a large and complex topic, it is not going to be covered here. For those who are interested, here are some resources where you can learn more:

File I/O in Java is done with classes available in the java.io package. You can read about it here [1] and many other places on the web. A newer package of I/O classes was released with Java 7 called java.nio.file and you can read the official documentation here [2].

 

Material Type: 
Lecture/Presentation
Education Level: 
Middle School [3]
High School [4]
Focus Subject: 
Computing / Computer Science [5]
Robotics Software [6]
HW Platform: 
EV3 [7]
SW Platform: 
Java [8]
Interactivity Style: 
Mixed [9]
Audience: 
Learner [10]



National Science Foundation

Source URL: https://stemrobotics.cs.pdx.edu/node/5173?root=7673

Links
[1] http://www.tutorialspoint.com/java/java_files_io.htm
[2] http://docs.oracle.com/javase/tutorial/essential/io/index.html
[3] https://stemrobotics.cs.pdx.edu/taxonomy/term/40
[4] https://stemrobotics.cs.pdx.edu/taxonomy/term/41
[5] https://stemrobotics.cs.pdx.edu/focus-area/computing-science
[6] https://stemrobotics.cs.pdx.edu/focus-area/robotics-software
[7] https://stemrobotics.cs.pdx.edu/taxonomy/term/156
[8] https://stemrobotics.cs.pdx.edu/target-software-platform/java
[9] https://stemrobotics.cs.pdx.edu/taxonomy/term/26
[10] https://stemrobotics.cs.pdx.edu/taxonomy/term/29