내가 이렇게 실행하는 데 사용 :텍스트 파일에서 줄 단위로 실행하는 방법 - Windows Mobile에서?
FileStream FS = null;
StreamWriter SW = null;
FS = new FileStream(@"\Items.txt", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);
SW = new StreamWriter(FS, Encoding.Default);
while (SW.Peek() != -1)
{
TEMP = (SW.ReadLine());
}
하지만 난 윈도우 모바일에이를하려고 할 때 오류 얻을 :
Error 1 'System.IO.StreamWriter' does not contain a definition for 'Peek' and no extension method 'Peek' accepting a first argument of type 'System.IO.StreamWriter' could be found (are you missing a using directive or an assembly reference?)
Error 2 'System.IO.StreamWriter' does not contain a definition for 'ReadLine' and no extension method 'ReadLine' accepting a first argument of type 'System.IO.StreamWriter' could be found (are you missing a using directive or an assembly reference?)
방법을 수행하는 방법을?
감사
도움을 주셔서 감사합니다, 어떻게 이것을 데이터 셋에 삽입 할 수 있습니까? – Gold
@Gold 파일 형식을 알지 못하고 실제로 도움이되지 않습니다. – Robb