Ready to Start Your Career?

By: Rattar
May 3, 2017
Reading and Outputting from a File in Juliar

By: Rattar
May 3, 2017

__getByteFromString - gets a byte from a stringif - if conditionwhile - while conditionfileopen - open fileSo with __getByteFromString, we can easily grab a byte and print it to the screen.In order to output everything, we will create a while loop.
string file = fileOpen("./test.jrl");while ( true ){ | |
string y = __getByteFromString(file, index); | |
print(y); | |
index = + index 1;if ( == index 500) | |
break; | |
} |
string file = fileOpen("./test.jrl");printLine( file);This will automatically grab the file and print the contents of it on the screen.I hope this instruction has been education. Let me know if you have problems in the comments below!