Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

use of randomaccessfile() in java

// Create a random access file object. 	
     RandomAccessFile file = new RandomAccessFile("myfile.dat", "rw");
// Writing to the file.
     file.writeChar('S');
// Moving file pointer to the beginning. 
    file.seek(0);   
// Reading data from the file.
     System.out.println(file.readChar());
Comment

PREVIOUS NEXT
Code Example
Java :: java read file from command line argument 
Java :: java anonymous class 
Java :: pass array to method java 
Java :: Float to bytes java 
Java :: 2 decimal places print format JAVA 
Java :: vue composition watch 
Java :: regex s+ 
Java :: iterate over multi array java 
Java :: android get string value 
Java :: kruskal java 
Java :: R8: java.lang.OutOfMemoryError: GC overhead limit exceeded react-native 
Java :: method parameters in java 
Java :: add java 8 support to pom 
Java :: how to send http post create request using curl command 
Java :: Implementing the ArrayList Class in java list 
Java :: declaring variables views in java android 
Java :: stream.concat 
Java :: Stop gninnipS My sdroW! javascrip codewars 
Java :: java convert url/image to drawable 
Java :: jsp check if request parameter exists 
Java :: how to convert string hashcode to color in java android 
Java :: android check file extension 
Java :: for loop condition java 
Java :: how to add data into list model in android 
Java :: . Java Program to Delete the Specified Integer from an Array 
Java :: java stack verification failed 
Java :: get width and height of screen libgdx 
Java :: spring logback configuration 
Java :: new in t arrray java 
Java :: Valid regex check java 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =