× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Kelly Cookson wrote:

>We want to write text strings to a file in the IFS. We can write to the IFS 
>file, but each letter is separated what looks like a tab, and the end-of-line 
>characters are unusual.
>
>Here's the exact code:
>
>
>       public static void main(String[] args) {
>               AS400 system = new AS400("mysystem", "myname", "mypassword");
>               IFSFile file = new IFSFile(system, 
> "/home/mydir/writeifs_test.txt");
>               try {
>               PrintWriter myWriter = new PrintWriter(new BufferedWriter(new 
> IFSFileWriter(file)));
>               myWriter.println("a new test");
>               myWriter.close();
>               } catch (Exception e) {
>                       e.printStackTrace();
>               }//end-try-catch
>       }//end-main
>
>The content of the writeifs_test.txt file in Notepad looks like this:
>
> a   n e w   t e s t 
> 
>There are also two special characters (boxes) at the end of the line that are 
>not showing up in this email message. When I open it in WordPad, I see a box 
>between each letter of "a new test."
>
>It's not an issue of translation when moving the file from the IFS to my 
>desktop (via Navigator drag and drop), because I can move other text files 
>from the same IFS directory to my desktop with no problems.
>
>Any help would be greatly appreciated.
>
>Thanks,
>Kelly
>
>  
>
Hi,
have you tried to see the file natively with DSPF or EDTF ?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.