This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Filesystem Filename touch fail [ was: PLEASE TEST YOUR FS ]


On 4/8/2010 2:06 AM, Corinna Vinschen wrote:[snip]

Here's a simple C# app to try and write under NTFS two files

-- V cake.cs V --

using System;
namespace delicious.cake {
	class test {
		static int Main(string[] args) {
			try {
				Console.WriteLine("Writing to 'foo.'");
				System.IO.File.WriteAllText(":","foo.");
				} // try
			catch(Exception ex) {
					Console.WriteLine("Could not write to file 'foo.'");
				}
				
				try {
				Console.WriteLine("Writing to 'foo '");
				System.IO.File.WriteAllText(":","foo ");
				} // try
			catch(Exception ex) {
					Console.WriteLine("Could not write to file 'foo '");
				}
				return 0;
			} // Main(...)
		} // test
	} // delicious.cake

-- ^ cake.cs ^ --

indrora@indrora-PC /cygdrive/c/morgan
$ ./test_cake
Writing to 'foo.'
Could not write to file 'foo.'
Writing to 'foo '
Could not write to file 'foo '

c:\morgan>test_cake
Writing to 'foo.'
Could not write to file 'foo.'
Writing to 'foo '
Could not write to file 'foo '


--


Morgan Gangwere

>> Why?
> Because it breaks the logical flow of conversation, plus makes messages unreadable.
>>> Top-Posting is evil.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]