file.Position problem
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
After this code EndofHeader is still zero. Why? FİleInfo fp = new FileInfo(path); FileStream file = fp.Open(FileMode.Create); StreamWriter sw = new StreamWriter(file); sw.WriteLine("{0} {1} {2} {3} {4} {5}",m,0,-1,1,1; EndofHeader = file.Position; balkan
You could try sw.WriteLine(String.Format("{0} {1} {2} {3} {4} {5}",m,0,-1,1,1,1)); one argument is missing, and String.Format too... try adding sw.Flush(); after WriteLine Hope it'll help... Robin Panther