Access and File types in VHDL Digital Design using VHDL by Ravinder Nath Rajotiya - May 13, 2021May 14, 20210 Access Type: Access type allows to manipulate data, which are created dynamically during simulation and which exact size is not known in advance. Any reference to them is performed via allocators, which work in a similar way as pointers in programming languages. Simplified Syntax access subtype_indication type identifier; Here, the subtype_indication denotes the type of an object designated by a value of an access type. It can be any scalar, composite or other access type. File type is not allowed here. Variables are only the objects allowed to be of the access type. The default value of an access type is null. NULL designates no object at all. Allocators has to be used to assign any other value to an object of an access type. The access type allows to create recursive data structures
File Handling in JAVA processing file data JAVA by Ravinder Nath Rajotiya - April 16, 2021April 16, 20210 Reading integer from file This program explains how we can read numerical data from a file and process it. Remember we need following steps to read from a file: step-1: create File object and connect the file containing data by passing fileName in object as: File file = new File("outputFile.txt"); Step-2: Test whether the file exists, if it exists step-3: Create object to Scanner class and connect it to the file containing data pointed by File object "file" as shown below: Scanner inputFile = new Scanner(file); Step-4: Check if the line being pointed by nextLine() has the data, this is done asL: while(inputFile.hasNext()) Step-5 read from thefile sum += inputFile.nextInt(); Now see the complete program, of reading integer values from the file and count the number values in file and