However, Linux and macOS are case-sensitive, which means the file "readme.txt" and "README.TXT" are treated as two different files even though they have the same file name. For example, Microsoft Windows is not case-sensitive and treats all files the same regardless if they have all lowercase characters or some uppercase characters. In most examples throughout this article, we'll read a text file with filename fileTest.txt that contains one line: Hello, world For a few examples, we'll use a different file in these cases, we'll mention the file and its contents explicitly. However, the operating system that uses the files may be case-sensitive. The many ways to write data to File using Java.
0 Comments
Leave a Reply. |