Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
GeneralRe: Send CTRL-S And CTRL-X To Open Excel Doc Pin
Kevin Marois15-Oct-09 8:28
professionalKevin Marois15-Oct-09 8:28 
GeneralRe: Send CTRL-S And CTRL-X To Open Excel Doc Pin
Saksida Bojan15-Oct-09 8:32
Saksida Bojan15-Oct-09 8:32 
Questioncommunication between two websites in asp.net Pin
noo.dyab15-Oct-09 7:53
noo.dyab15-Oct-09 7:53 
AnswerRe: communication between two websites in asp.net Pin
Dave Kreskowiak15-Oct-09 8:05
mveDave Kreskowiak15-Oct-09 8:05 
GeneralRe: communication between two websites in asp.net Pin
noo.dyab15-Oct-09 9:31
noo.dyab15-Oct-09 9:31 
GeneralRe: communication between two websites in asp.net Pin
Dave Kreskowiak15-Oct-09 11:58
mveDave Kreskowiak15-Oct-09 11:58 
AnswerRe: communication between two websites in asp.net Pin
Richard MacCutchan15-Oct-09 9:30
mveRichard MacCutchan15-Oct-09 9:30 
Questiona table of arraylist Pin
abbd15-Oct-09 7:51
abbd15-Oct-09 7:51 
AnswerRe: a table of arraylist Pin
OriginalGriff15-Oct-09 8:02
mveOriginalGriff15-Oct-09 8:02 
GeneralRe: a table of arraylist Pin
abbd15-Oct-09 8:07
abbd15-Oct-09 8:07 
GeneralRe: a table of arraylist Pin
Luc Pattyn15-Oct-09 8:16
sitebuilderLuc Pattyn15-Oct-09 8:16 
GeneralRe: a table of arraylist Pin
abbd15-Oct-09 8:20
abbd15-Oct-09 8:20 
GeneralRe: a table of arraylist Pin
Saksida Bojan15-Oct-09 8:23
Saksida Bojan15-Oct-09 8:23 
GeneralRe: a table of arraylist Pin
Luc Pattyn15-Oct-09 8:45
sitebuilderLuc Pattyn15-Oct-09 8:45 
GeneralRe: a table of arraylist Pin
Luc Pattyn15-Oct-09 8:47
sitebuilderLuc Pattyn15-Oct-09 8:47 
GeneralRe: a table of arraylist Pin
OriginalGriff15-Oct-09 8:42
mveOriginalGriff15-Oct-09 8:42 
AnswerRe: a table of arraylist [modified] Pin
Saksida Bojan15-Oct-09 8:21
Saksida Bojan15-Oct-09 8:21 
QuestionAccess denied on opening a file for writing Pin
Member 405249815-Oct-09 7:45
Member 405249815-Oct-09 7:45 
AnswerRe: Access denied on opening a file for writing Pin
OriginalGriff15-Oct-09 7:59
mveOriginalGriff15-Oct-09 7:59 
GeneralRe: Access denied on opening a file for writing Pin
Member 405249815-Oct-09 8:51
Member 405249815-Oct-09 8:51 
AnswerRe: Access denied on opening a file for writing Pin
Luc Pattyn15-Oct-09 8:01
sitebuilderLuc Pattyn15-Oct-09 8:01 
GeneralRe: Access denied on opening a file for writing Pin
Member 405249815-Oct-09 9:00
Member 405249815-Oct-09 9:00 
GeneralRe: Access denied on opening a file for writing Pin
Luc Pattyn15-Oct-09 9:21
sitebuilderLuc Pattyn15-Oct-09 9:21 
I don't see what is wrong; maybe you are nesting things (not shown) or running several file operations on different threads (not shown).
One way to get it to fail would be to have SrtFileParser.parseString call ecrireFichier.
If relevant, all this can be checked by adding some logging, as in Console.WriteLine("Now opening...") and the like, and observing the logs.

Here is a suggestion:
your getLignesFromFile() method reads the entire file at once in a complex manner; you could have used File.ReadAllText() or File.ReadAllLines() which are much harder to get wrong.
So replace all your file reads by those methods.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: Access denied on opening a file for writing Pin
Member 405249815-Oct-09 9:58
Member 405249815-Oct-09 9:58 
GeneralRe: Access denied on opening a file for writing Pin
Luc Pattyn15-Oct-09 10:07
sitebuilderLuc Pattyn15-Oct-09 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.